lost and found ( for me ? )

Solaris 10 x66 : configure IP alias temporarily


bash-3.2# uname -ri
5.10 i86pc


check an interface name
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
       inet 127.0.0.1 netmask ff000000
rtls0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
       inet 192.168.10.246 netmask ffffff00 broadcast 192.168.10.255
       ether 52:54:0:zz:zz:zz


or you can check interface name by checking /etc/hotname.<interface name>
bash-3.2# ls /etc/hostname*
/etc/hostname.rtls0


assine an IP address to rtls0:1
bash-3.2# ifconfig rtls0:1 plumb
bash-3.2# ifconfig rtls0:1 192.168.10.247 netmask 255.255.255.0
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
       inet 127.0.0.1 netmask ff000000
rtls0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
       inet 192.168.10.246 netmask ffffff00 broadcast 192.168.10.255
       ether 52:54:0:zz:zz:zz
rtls0:1: flags=201000842<BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
       inet 192.168.10.247 netmask ffffff00 broadcast 192.168.10.255

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.