{"id":72,"date":"2008-08-19T14:35:35","date_gmt":"2008-08-19T14:35:35","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2008\/08\/19\/configuring-an-interface\/"},"modified":"2021-07-24T19:32:48","modified_gmt":"2021-07-24T19:32:48","slug":"configuring-an-interface","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Solaris\/configuring-an-interface.html","title":{"rendered":"Solaris – Configuring an Interface"},"content":{"rendered":"
In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex.<\/span><\/p>\n Bring up the Interface<\/strong><\/span><\/p>\n To bring up and plumb the interface, we first need to type the following, (change the IP to yours)<\/span><\/p>\n Update the <\/span>\/etc\/netmasks<\/span> file with the network address and subnet mask, if not already present (the required line is below),<\/span><\/p>\n For the new interface , first edit the \/etc\/hosts file and create a new entry. The space should be a tab.<\/span><\/p>\n Now create a new file <\/span>\/etc\/hostname.qfe1<\/span> and add the entry<\/span><\/p>\n To do the above but using less effort (and lines) try the following,<\/span><\/p>\n Set Duplex<\/strong><\/span><\/p>\n Then to make the change permanent add to <\/span>\/etc\/system<\/span> Below is a reference to the difference abbreviations : <\/span><\/p>\n Check the interface <\/strong><\/span><\/p>\n Check the IP address and status of the interface <\/span><\/p>\n Set the interface we are going to check,<\/span><\/p>\n To check the link, (reply of 1 = LED is active, 0 = Line is dead)<\/span><\/p>\n To check the negotiated speed,<\/span><\/p>\n 1=100mbit for qfe & hme, 1 Gbit for ge. To check link mode, (1= full-duplex, 0 = half-duplex)<\/span><\/p>\n Remove the Interface<\/strong><\/span><\/p>\n Disable interface qfe1<\/span><\/p>\n Remove the interface qfe1<\/span><\/p>\n <\/span><\/p>\n","protected":false},"excerpt":{"rendered":" In this example we will configure interface qfe1 with the an IP of 192.168.1.1 255.255.255.0 and set the speed to 100 full duplex. Bring up the Interface To bring up and plumb the interface, we first need to type the following, (change the IP to yours) ifconfig qfe1 plumbifconfig qfe1 192.168.1.1 netmask 255.255.255.0 up Update … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[],"yoast_head":"\nifconfig qfe1 plumb
ifconfig qfe1 192.168.1.1 netmask 255.255.255.0 up<\/span>
<\/span><\/pre>\n192.168.1.0 255.255.255.0<\/span>
<\/span><\/pre>\n192.168.1.1 solarisserver-qfe1<\/span>
<\/span><\/pre>\nsolarisserver-qfe1<\/span>
<\/span><\/pre>\nifconfig qfe1 plumb ; ifconfig qfe1 192.168.1.1 netmask 255.255.255.0 up
echo \"192.168.1.0\\t255.255.255.0\" >> \/etc\/netmasks
echo \"192.168.1.1\\t\"`hostname`-qfe1 >> \/etc\/hosts
echo `hostname`-qfe1 > \/etc\/hostname.qfe1<\/span>
<\/span><\/pre>\nndd -set \/dev\/qfe instance 1 <\/span>
<\/span>ndd -set \/dev\/qfe adv_100fdx_cap 1<\/span>
<\/span><\/pre>\n
<\/span><\/p>\nset \/dev\/qfe1 adv_100fdx_cap 1<\/span>
<\/span><\/pre>\ninstance 1 = port instance 1
adv = advertise
cap = capability
1 = enabled
0 = disabled
<\/span><\/pre>\nifconfig -a
<\/span><\/pre>\nndd -set \/dev\/qfe instance 1
<\/span><\/pre>\nndd -get \/dev\/qfe link_status
<\/span><\/pre>\n
0=10mbit for qfe & hme, 500 mbit for ge. <\/span><\/p>\nndd -get \/dev\/qfe link_speed<\/span>
<\/span><\/pre>\nndd -get \/dev\/qfe link_mode<\/span>
<\/span><\/pre>\nifconfig qfe1 down<\/span>
<\/span><\/pre>\nifconfig qfe1 unplum<\/span>b
<\/span><\/pre>\n