|
# svcadm disable network/physical:nwam
# svcadm enable network/physical:default
dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE net1 Ethernet up 1000 full xnf1 net2 Ethernet up 1000 full xnf2 net0 Ethernet up 1000 full xnf0 net3 Ethernet up 1000 full xnf3
dladm show-link
LINK CLASS MTU STATE OVER net1 phys 1500 up -- net2 phys 1500 up -- net0 phys 1500 up -- net3 phys 1500 up --
ipadm show-if
IFNAME CLASS STATE ACTIVE OVER lo0 loopback ok yes -- net0 ip ok yes -- net1 ip ok yes -- net2 ip ok yes -- net3 ip ok yes -- |
ipadm create-ip net1
ipadm create-ip net2
ipadm create-ip net3
ipadm create-addr -T static -a 192.168.1.111/24 net1/v4
ipadm create-addr -T static -a 192.168.2.112/24 net2/v4
ipadm create-addr -T static -a 192.168.3.112/24 net3/v4
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26611303/viewspace-1162217/ ,如需转载,请注明出处,否则将追究法律责任。