So, I have this openindiana, and I'd like it to have a network configuration. But something slightly more advanced than what's default. So during the installation, instead of selecting "Automatic" network, I'll say "none" and have a network-wise blank box start up.
So, for instance.
# ipadm show-if IFNAME STATE CURRENT PERSISTENT lo0 ok -m-v------46 ---
Nice and clean, I've got two network adapters in it, I find them with.
# dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE e1000g0 Ethernet up 100 full e1000g0 e1000g1 Ethernet up 100 full e1000g1
And I'll be wanting an aggregate interface running LACP, actively over those two ports. So the recipe is fairly simple and not so easy to find :-)
# dladm create-aggr -l e1000g0 -l e1000g1 -L active aggr0 # dladm show-aggr LINK POLICY ADDRPOLICY LACPACTIVITY LACPTIMER FLAGS aggr0 L4 auto active short ----- # dladm show-link LINK CLASS MTU STATE BRIDGE OVER e1000g0 phys 1500 up -- -- e1000g1 phys 1500 up -- -- aggr0 aggr 1500 up -- e1000g0 e1000g1
So now I have an aggregate interface up and running, I'll be wanting to do something fun with it. Besides running some actual services on it, I'll need the ability to reach the machine itself, in this case on a specific vlan.
So we create an
admin0 interface and have it grab a dhcp address.
# dladm create-vnic -l aggr0 -v 123 admin0 # ipadm create-addr -T dhcp admin0/v4 # ipadm create-addr -T addrconf admin0/v6 # ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 admin0/v4 dhcp ok 192.0.2.79/24 lo0/v6 static ok ::1/128 admin0/v6 addrconf ok fe80::8:20ff:fe27:c050/10 admin0/v6 addrconf ok 2001:db8:0:212:8:20ff:fe27:c050/64
And now I've got network running. And do the rest of the system administration from the beach ;-)