Configure Static IP for OpenSolaris
Follow step below:
1. svcadm disable network/physical:nwam (Execute in terminal)
2. svcadm enable network/physical:default (Execute in terminal)
3. cp /etc/nsswitch.dns /etc/nsswitch.conf
4. Put DNS in /etc/resolv.conf ( eg: nameserver 172.16.17.x, this should be your dns server ip)
5. Put the default router(gateway) ip into /etc/defaultrouter (eg:172.16.17.11)
6. #dladm show-phys or ifconfig -a (Check the Enternet Interface of your system.
7. If your Ethernet interface name is e1000g0, create /etc/hostname.e1000g0, and add below two lines as
eg: line 1: 172.16.17.x (the static IP you wuold like to assign)
line 2: netmask 255.255.255.0 broadcast + up
8. Restart Machine (Some time reoot is not required, for confirmation reboot and check if you are getting
static ip)
Outher OpenSolaris commands
cat /etc/nwam/llp ( to check the ip )
#svcadm restart network/physical:nwam (Restart nwam:)
Add your new IP and hostname into /etc/hosts following the same format as already exists
#svcadm enable network/physical:default
#svcadm restart network/routing-setup (To add just the ip address of your default router to /etc/defaultrouter)
#dladm show-phys or ifconfig -a (Check the Enternet Interface of your system.
LINK MEDIA STATE SPEED DUPLEX DEVICE
yge0 Ethernet unknown 0 unknown yge0
e1000g0 Ethernet up 1000 full e1000g0
e1000g1 Ethernet unknown 0 half e1000g1
ath0 Wifi up 1000 full ath0
Follow step below:
1. svcadm disable network/physical:nwam (Execute in terminal)
2. svcadm enable network/physical:default (Execute in terminal)
3. cp /etc/nsswitch.dns /etc/nsswitch.conf
4. Put DNS in /etc/resolv.conf ( eg: nameserver 172.16.17.x, this should be your dns server ip)
5. Put the default router(gateway) ip into /etc/defaultrouter (eg:172.16.17.11)
6. #dladm show-phys or ifconfig -a (Check the Enternet Interface of your system.
7. If your Ethernet interface name is e1000g0, create /etc/hostname.e1000g0, and add below two lines as
eg: line 1: 172.16.17.x (the static IP you wuold like to assign)
line 2: netmask 255.255.255.0 broadcast + up
8. Restart Machine (Some time reoot is not required, for confirmation reboot and check if you are getting
static ip)
Outher OpenSolaris commands
cat /etc/nwam/llp ( to check the ip )
#svcadm restart network/physical:nwam (Restart nwam:)
Add your new IP and hostname into /etc/hosts following the same format as already exists
#svcadm enable network/physical:default
#svcadm restart network/routing-setup (To add just the ip address of your default router to /etc/defaultrouter)
#dladm show-phys or ifconfig -a (Check the Enternet Interface of your system.
LINK MEDIA STATE SPEED DUPLEX DEVICE
yge0 Ethernet unknown 0 unknown yge0
e1000g0 Ethernet up 1000 full e1000g0
e1000g1 Ethernet unknown 0 half e1000g1
ath0 Wifi up 1000 full ath0
No comments:
Post a Comment