- 檢視目前有up的網卡為net0 及 net4
root@NIASc11:~# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet down 0 unknown igb1
net3 Ethernet up 1000 full igb3
net0 Ethernet up 1000 full igb0
net2 Ethernet down 0 unknown igb2
net4 Ethernet up 10 full usbecm2
- net0目前為Globe-Zone所使用
root@NIASc11:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.2.198/24
net4/v4 static ok 169.254.182.77/24
lo0/v6 static ok ::1/128
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.2.198/24
net4/v4 static ok 169.254.182.77/24
lo0/v6 static ok ::1/128
- 檢視目前建立及使用的vnic
root@NIASc11:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic11 net3 1000 2:8:20:d3:46:b9 random 0
WPSc14/vnic11 net3 1000 2:8:20:d3:46:b9 random 0
vnic22 net3 1000 2:8:20:55:8:1a random 0
wpsm1 net1 0 2:8:20:f6:84:fb random 0
wpsm3 net2 0 2:8:20:5e:a1:1d random 0
WPSc14/net0 net0 1000 2:8:20:19:e8:8d random 0
- 在net3 網卡建立名為ops1的vnic
root@NIASc11:~# dladm create-vnic -l net3 ops1
root@NIASc11:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic11 net3 1000 2:8:20:d3:46:b9 random 0
WPSc14/vnic11 net3 1000 2:8:20:d3:46:b9 random 0
vnic22 net3 1000 2:8:20:55:8:1a random 0
wpsm1 net1 0 2:8:20:f6:84:fb random 0
wpsm3 net2 0 2:8:20:5e:a1:1d random 0
WPSc14/net0 net0 1000 2:8:20:19:e8:8d random 0
ops1 net3 1000 2:8:20:9e:5:3 random 0
沒有留言:
張貼留言