Discussion:
solaris11 static IP setup
Tom Chen
2011-09-08 20:42:35 UTC
Permalink
Hello,

I am using snv171. I am often confused by its NWAM: all IP ports before net0, net1....., I am wondering how do I know which one is mother board NIC which I usually set as default access port?

Also, how do I disable nwam and set NIC static IP address manually? I used to disable nwam and then set static IP manually. However,
svcadm disable svc:/network/physical:nwam
svcadm enable svc:/network/physical:default
do not work on recent version of S11 x86, though they still work on Sparc.

Any idea how to set static IP on recent S11 x86 release?

Tom

***@aryabhata:~# cat /etc/release
Oracle Solaris 11 snv_171 X86
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 29 July 2011
***@aryabhata:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 172.17.139.61 netmask fffffe00 broadcast 172.17.139.255
ether 0:14:4f:ca:e6:98
net1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask ff000000
ether 0:14:4f:ca:e6:99
net4: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 6
inet 0.0.0.0 netmask ff000000
ether 0:c0:dd:14:54:6c
net6: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 7
inet 0.0.0.0 netmask ff000000
ether 0:e:1e:4:9c:40
net7: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 8
inet 0.0.0.0 netmask ff000000
ether 0:e:1e:4:9c:44
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
inet6 fe80::214:4fff:feca:e698/10
ether 0:14:4f:ca:e6:98
net1: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 3
inet6 fe80::214:4fff:feca:e699/10
ether 0:14:4f:ca:e6:99
net4: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 6
inet6 fe80::2c0:ddff:fe14:546c/10
ether 0:c0:dd:14:54:6c
net6: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 7
inet6 fe80::20e:1eff:fe04:9c40/10
ether 0:e:1e:4:9c:40
net7: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 8
inet6 fe80::20e:1eff:fe04:9c44/10
ether 0:e:1e:4:9c:44
***@aryabhata:~#
***@aryabhata:~# svcadm disable svc:/network/physical:nwam
***@aryabhata:~# svcadm enable svc:/network/physical:default
***@aryabhata:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 172.17.139.61 netmask fffffe00 broadcast 172.17.139.255
ether 0:14:4f:ca:e6:98
net1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
inet 0.0.0.0 netmask ff000000
ether 0:14:4f:ca:e6:99
net4: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 6
inet 0.0.0.0 netmask ff000000
ether 0:c0:dd:14:54:6c
net6: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 7
inet 0.0.0.0 netmask ff000000
ether 0:e:1e:4:9c:40
net7: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 8
inet 0.0.0.0 netmask ff000000
ether 0:e:1e:4:9c:44
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
inet6 fe80::214:4fff:feca:e698/10
ether 0:14:4f:ca:e6:98
net1: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 3
inet6 fe80::214:4fff:feca:e699/10
ether 0:14:4f:ca:e6:99
net4: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 6
inet6 fe80::2c0:ddff:fe14:546c/10
ether 0:c0:dd:14:54:6c
net6: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 7
inet6 fe80::20e:1eff:fe04:9c40/10
ether 0:e:1e:4:9c:40
net7: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 8
inet6 fe80::20e:1eff:fe04:9c44/10
ether 0:e:1e:4:9c:44
--
This message posted from opensolaris.org
Loading...