Tuesday, February 9, 2010

Solaris: How do I modify the network configuration of a running zone?

global# ifconfig bge0 addif  192.168.200.2 zone myzone
global# ifconfig bge0 removeif 192.168.200.2

Or remove and add again interface via zonecfg -z myzone

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...