Adding a new network interface in NGZ

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Adding a new network interface in NGZ

Post by cah »

1. Check existing network interfaces in global zone:

Code: Select all

appzone02:/%ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        zone bldint03
        inet 127.0.0.1 netmask ff000000 
ixgbe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.0.33.8 netmask fffffe00 broadcast 10.0.33.255
        ether 0:10:e0:35:86:8a 
ixgbe1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 0.0.0.0 netmask 0 
        ether 0:10:e0:35:86:8b 
ixgbe1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        zone bldint03
        inet 10.0.32.156 netmask fffffe00 broadcast 10.0.33.255
usbecm0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.255.255
        ether 2:21:28:57:47:17 
2. Using zonecfg to configure the NGZ:

Code: Select all

appzone02:/%zonecfg -z bldint03
zonecfg:bldint03>
3. Check NGZ informaiton:

Code: Select all

zonecfg:bldint03> info
zonename: bldint03
zonepath: /zonepool/zones/bldint03
brand: native
autoboot: true
bootargs: 
pool: 
limitpriv: 
scheduling-class: 
ip-type: shared
hostid: 
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
inherit-pkg-dir:
        dir: /opt
net:
        address: 10.0.32.156
        physical: ixgbe1
        defrouter: 10.0.32.1
attr:
        name: comment
        type: string
        value: "Apptlication Non Global Zone -- bldint03"
4. Add a network interface:

Code: Select all

zonecfg:bldint03> add net
zonecfg:bldint03:net> info
net:
        address not specified
        physical not specified
        defrouter not specified

zonecfg:bldint03:net> set address=10.0.32.157
zonecfg:bldint03:net> set physical=ixgbe1
zonecfg:bldint03:net> set defrouter=10.0.32.1
5. check the new network interface information:

Code: Select all

zonecfg:bldint03:net> info
net:
        address: 10.0.32.157
        physical: ixgbe1
        defrouter: 10.0.32.1
zonecfg:bldint03:net> end
6. Verify, commit and Exit:

Code: Select all

zonecfg:bldint03> verify
zonecfg:bldint03> commit
zonecfg:bldint03> exit
7. Check NGZ information again:

Code: Select all

appzone02:/%zonecfg -z bldint03
zonecfg:bldint03> info
zonename: bldint03
zonepath: /zonepool/zones/bldint03
brand: native
autoboot: true
bootargs: 
pool: 
limitpriv: 
scheduling-class: 
ip-type: shared
hostid: 
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
inherit-pkg-dir:
        dir: /opt
net:
        address: 10.0.32.156
        physical: ixgbe1
        defrouter: 10.0.32.1
net:
        address: 10.0.32.157
        physical: ixgbe1
        defrouter: 10.0.32.1
attr:
        name: comment
        type: string
        value: "Apptlication Non Global Zone -- bldint03"
zonecfg:bldint03> exit
8. Reboot NGZ:

Code: Select all

appzone02:/export/home/hsiaoc1%zoneadm -z bldint03 reboot
9. Check network interfaces from global zone again:

Code: Select all

appzone02:/export/home/hsiaoc1%ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        zone bldint03
        inet 127.0.0.1 netmask ff000000 
ixgbe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 10.0.33.8 netmask fffffe00 broadcast 10.0.33.255
        ether 0:10:e0:35:86:8a 
ixgbe1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 0.0.0.0 netmask 0 
        ether 0:10:e0:35:86:8b 
ixgbe1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        zone bldint03
        inet 10.0.32.156 netmask fffffe00 broadcast 10.0.33.255
ixgbe1:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        zone bldint03
        inet 10.0.32.157 netmask fffffe00 broadcast 10.0.33.255
usbecm0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.255.255
        ether 2:21:28:57:47:17 
10. Check network interfaces on NGZ:

Code: Select all

bldint03:/%ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
ixgbe1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.0.32.156 netmask fffffe00 broadcast 10.0.33.255
ixgbe1:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 10.0.32.157 netmask fffffe00 broadcast 10.0.33.255
CAH, The Great
Post Reply