Tuesday, July 22, 2014

Solaris 11: Configure network interface


 Setup DNS

Check DNS and make sure domain & search are present

    # cat /etc/resolv.conf
    domain  dcs.bbk.ac.uk
    search  dcs.bbk.ac.uk
    nameserver      193.61.1.1
    nameserver      193.61.2.2

Update service if required:

    # sudo svccfg
    svc:> select dns/client
    svc:/network/dns/client> setprop config/domain = astring: "dcs.bbk.ac.uk"
    svc:/network/dns/client> setprop config/search = astring: "dcs.bbk.ac.uk"
    svc:/network/dns/client> setprop config/nameserver = net_address: (193.61.1.1  193.61.2.2)
    svc:/network/dns/client> select dns/client:default
    svc:/network/dns/client> refresh
    svc:/network/dns/client> validate
    svc:/network/dns/client> exit


# netadm list

# netadm enable -p ncp DefaultFixed

# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net1              Ethernet             unknown    0      unknown   igb1
net3              Ethernet             unknown    0      unknown   igb3
net0              Ethernet             up         100    full      igb0
net2              Ethernet             unknown    0      unknown   igb2
net4              Ethernet             up         10     full      usbecm2

# ipadm create-ip net1
# ipadm show-if
IFNAME     CLASS    STATE    ACTIVE OVER
lo0        loopback ok       yes    --
net0       ip       ok       yes    --
net1       ip       down     no     --
net4       ip       ok       yes    --
# ipadm create-addr -T static -a 13.5.210.16/24 net1/sun     13.5.210.16/24
net4/v4           static   ok           169.254.182.77/24
lo0/v6            static   ok           ::1/128
net0/v6           addrconf ok           fe80::210:e0ff:fe57:ebe4/10

# ipadm show-if
IFNAME     CLASS    STATE    ACTIVE OVER
lo0        loopback ok       yes    --
net0       ip       ok       yes    --
net1       ip       ok       yes    --
net4       ip       ok       yes    --
# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
net0/v4           static   ok           13.5.210.6/24
net1/sun         static   ok           13.5.210.16/24
net4/v4           static   ok           169.254.182.77/24
lo0/v6            static   ok           ::1/128
net0/v6           addrconf ok           fe80::210:e0ff:fe57:ebe4/10

# nscfg export svc:/network/dns/client:default

No comments:

Post a Comment