我的视频课程:Oracle小型机及Solaris系统的使用与管理(视频课程)


一,查看网络信息

主要是用到了ifconfig、dladm、ipadm等命令

root@binglog:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 2
        inet 192.168.0.110 netmask ffffff00 broadcast 192.168.0.255
        ether 0:10:e0:3f:46:e0 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128 
net0: flags=120002004841<UP,RUNNING,MULTICAST,DHCP,IPv6,PHYSRUNNING> mtu 1500 index 2
        inet6 fe80::210:e0ff:fe3f:46e0/10 
        ether 0:10:e0:3f:46:e0 


root@db1:~# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
net1/v4           static   ok           10.0.0.10/24
net3/v4           static   ok           10.0.0.11/24
net24/v4          static   ok           169.254.182.77/24
aggr1/v4          static   ok           192.168.0.121/24
aggr1/v4a         static   ok           192.168.0.141/24
aggr1/v4b         static   ok           192.168.0.142/24
lo0/v6            static   ok           ::1/128

root@binglog:~# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net1              Ethernet             unknown    0      unknown   ixgbe1
net0              Ethernet             up         1000   full      ixgbe0
net2              Ethernet             down       10     full      usbecm0


root@binglog:~# dladm show-link
LINK                CLASS     MTU    STATE    OVER
net1                phys      1500   unknown  --
net0                phys      1500   up       --
net2                phys      1500   down     --

可以看到,系统只用了net0的网口。

二、设置IP地址

本文隐藏内容全文需 点击文章最后链接查看


《Oracle小型机及Solaris系统的使用与管理》视频课程观看地址:
51CTO:https://edu.51cto.com/course/18419.html