network solaris 11

# svcadm disable nwam
# svcadm enable network/physical:default
# dladm show-phys
# dladm show-link
# ipadm create-ip bge0
# dladm show-link
# ipadm show-if
# ipadm create-if bge0
# dladm show-link
# ipadm show-if
# ipadm create-addr -T dhcp bge0/v4
# ipadm show-addr
# ipadm create-addr -T static -a 192.168.100.200/24 bge0/v4
# route -p add default 192.168.100.1

# ipadm create-ip net1
# ipadm create-addr -T static -a 10.10.0.1/24 net1/v4
# ipadm create-addr -T static -a 10.10.0.2/24 net1/v4a1

# ipadm show-addr

# ipadm delete-addr net1/v4
# ipadm delete-ip net1 (also deletes addr)

===================================
vnic example with zone

# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
net1 Ethernet unknown 0 unknown e1000g1
net2 Ethernet unknown 0 unknown e1000g2
net3 Ethernet unknown 0 unknown e1000g3

# dladm show-link
LINK CLASS MTU STATE OVER
net0 phys 1500 up --
net1 phys 1500 unknown --
net2 phys 1500 unknown --
net3 phys 1500 unknown --

# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.1.161/24
lo0/v6 static ok ::1/128
net0/v6 addrconf ok fe80::20c:29ff:fe0b:c9dc/10

# dladm create-vnic -l net3 vnic10

(you can configure a zone to use this interface exclusively by default)

(from withing the zone:)
# ipadm create-ip vnic10
# ipadm create-addr -T static -a 192.168.1.200/24 vnic10/v4a
===================================

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.