Things happened with me that when you have a server or a virtual machine "like VMWare" during the setup for the VM you may add a second interface, so after clean installation I didn't see the second interface,
Normally first interface name: e1000g0
so after write the command ifconfig -a show this output:
bash-3.00# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843 mtu 1500 index 2
inet 192.168.1.110 netmask ffffff00 broadcast 192.168.1.255
ether 0:c:29:f9:0:9b
so HOW TO show your second interface:
command that most of people don't know it:
dladm show-link # datalink admin show what is connected
bash-3.00# dladm show-link
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
after we see the second interface you may write:
# ifconfig e1000g1 plumb
Normally first interface name: e1000g0
so after write the command ifconfig -a show this output:
bash-3.00# ifconfig -a
lo0: flags=2001000849
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843
inet 192.168.1.110 netmask ffffff00 broadcast 192.168.1.255
ether 0:c:29:f9:0:9b
so HOW TO show your second interface:
command that most of people don't know it:
dladm show-link # datalink admin show what is connected
bash-3.00# dladm show-link
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
e1000g1 type: non-vlan mtu: 1500 device: e1000g1
after we see the second interface you may write:
# ifconfig e1000g1 plumb
ifconfig -a command should show following type of output which means device is enabled and is ready to configure ip address and netmask :
e1000g1: flags=842 mtu 1500
inet 0.0.0.0 netmask 0
ether 3:22:11:6d:2e:1f
inet 0.0.0.0 netmask 0
ether 3:22:11:6d:2e:1f
Configuring ipaddress and netmask and making the interface status as up .
#ifconfig e1000g1 192.9.2.106 netmask 255.255.255.0 up
That's it
Regards.
No comments:
Post a Comment