Here we discuss the Commonly used Network Commands for Solaris network Administration.
How to list the Physical Network card's information :
# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet down 0 unknown i40e0
net1 Ethernet down 0 unknown i40e1
net2 Ethernet down 0 unknown i40e2
net3 Ethernet down 0 unknown i40e3
net4 Ethernet up 25000 full bnxt0
net5 Ethernet unknown 0 unknown bnxt1
net6 Ethernet up 25000 full bnxt2
net7 Ethernet unknown 0 unknown bnxt3
net8 Ethernet up 25000 full bnxt4
net9 Ethernet unknown 0 unknown bnxt5
net10 Ethernet up 25000 full bnxt6
net11 Ethernet unknown 0 unknown bnxt7
net12 Ethernet up 25000 full vsw0
sp-phys0 Ethernet up 10 full usbecm2
How to list the Physical Network PCI card's information :
# dladm show-phys -L
LINK DEVICE LOC
net0 i40e0 /SYS/MB
net1 i40e1 /SYS/MB
net2 i40e2 /SYS/MB
net3 i40e3 /SYS/MB
net4 bnxt0 /SYS/MB/PCIE6
net5 bnxt1 /SYS/MB/PCIE6
net6 bnxt2 /SYS/MB/PCIE1
net7 bnxt3 /SYS/MB/PCIE1
net8 bnxt4 /SYS/MB/PCIE3
net9 bnxt5 /SYS/MB/PCIE3
net10 bnxt6 /SYS/MB/PCIE2
net11 bnxt7 /SYS/MB/PCIE2
net12 vsw0 --
sp-phys0 usbecm2 --
How to list the Physical Network Port Properties :
# dladm show-linkprop net4
LINK PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE
net4 speed r- 25000 25000 25000 --
net4 autopush rw -- -- -- --
net4 zone rw -- -- -- --
net4 duplex r- full full full half,full
net4 state r- up up up up,down
net4 auto-negotiation rw 1 1 1 1,0
net4 mtu rw 1500 1500 1500 576-9582
net4 flow-control rw bi bi bi no,tx,rx,bi,
pfc,auto
net4 firmware-version r- 20.08.01.18 20.08.01.18 -- --
net4 speed-duplex rw 25g-f,10g-f, 25g-f,10g-f, 25g-f, 25g-f,10g-f,
1g-f 1g-f 10g-f, 1g-f
1g-f
net4 max-bw rw -- -- -- --
net4 bw-share r- -- -- -- --
net4 cpus rw -- -- -- --
net4 rx-fanout rw -- 0 32 --
net4 pool rw -- pool_default -- --
net4 priority rw medium medium medium low,medium,
high
net4 tag-mode rw vlanonly vlanonly vlanonly normal,
vlanonly
net4 forward rw -- -- 1 1,0
net4 default-tag rw 1 1 1 --
net4 vlan-announce rw off off off off,gvrp
net4 gvrp-timeout rw 250 250 250 100-100000
net4 learn-limit rw 1000 1000 1000 0-4294967295
net4 learn-decay rw 200 200 200 0-4294967295
net4 stp rw -- -- 1 1,0
net4 stp-priority rw -- -- 128 --
net4 stp-cost rw -- -- auto --
net4 stp-edge rw -- -- 1 1,0
net4 stp-p2p rw -- -- auto true,false,
auto
net4 stp-mcheck rw -- -- 0 1,0
net4 protection rw -- -- -- mac-nospoof,
restricted,
ip-nospoof,
dhcp-nospoof
net4 mac-address rw bc:97:e1:f1:65:60 bc:97:e1:f1:65:60 bc:97:e1:f1:65:60 --
net4 allowed-ips rw -- -- -- --
net4 allowed-dhcp-cids rw -- -- -- --
net4 rx-rings rw -- 8 -- --
net4 tx-rings rw -- 8 -- --
net4 tx-rings-available r- 0 0 -- --
net4 rx-rings-available r- 0 0 -- --
net4 rx-hw-client-available r- 0 0 -- --
net4 tx-hw-client-available r- 0 0 -- --
net4 pfcmap rw -- -- 11111111 00000000-11111111
net4 pfcmap-remote r- -- -- -- --
net4 num-tcs r- 0 0 0 --
net4 vsi-manager-id rw -- -- :: --
net4 vsi-manager-id-encoding rw -- -- oracle_v1 none,
oracle_v1
net4 lro r- auto off auto on,off,auto
net4 cos rw -- -- 0 --
net4 ets-bw-local rw -- -- 0 --
net4 ets-bw-remote r- -- -- -- --
net4 ets-bw-local-advice r- -- -- -- --
net4 ets-bw-remote-advice rw -- -- 0 --
net4 virtual-switching rw local local local local,remote,
auto
net4 iov rw auto off auto auto,on,off
net4 ring-group r- shared shared -- shared,
exclusive
net4 ptp r- 0 0 0 --
net4 poll rw auto off auto auto,on,off
net4 pvlan-tag-mode rw primary primary primary secondary,
primary
net4 tph rw auto off auto auto,on,off
net4 authentication rw -- -- -- off
net4 authentication-state r- -- -- off succeeded,
failed,
in-progress,
off
How to set NIC card MTU :
#dladm set-linkprop -p mtu=9000 net4
How to list the Link Aggregation Properties :
#dladm show-aggr
LINK MODE POLICY ADDRPOLICY LACPACTIVITY LACPTIMER
aggr0 trunk L4 auto active short
How to list the Link Aggregation NIC Cards infromatin :
# dladm show-aggr -x
LINK PORT SPEED DUPLEX STATE ADDRESS PORTSTATE
aggr0 -- 25000Mb full up bc:97:e1:f1:65:60 --
net4 25000Mb full up bc:97:e1:f1:65:60 attached
net6 25000Mb full up bc:97:e1:f1:87:c0 attached
net8 25000Mb full up bc:97:e1:f1:53:30 attached
net10 25000Mb full up bc:97:e1:f1:87:90 attached
root@:~#
How to list the System IP Address :
#ipadm show-addr
How to check the link speed:
#dladm show-linkprop -p speed-duplex net4
LINK PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE
net4 speed-duplex rw 25g-f,10g-f, 25g-f,10g-f, 25g-f, 25g-f,10g-f,
1g-f 1g-f 10g-f, 1g-f
1g-f
How to set the link speed:
#dladm set-linkprop -p speed-duplex=25gg-f,10g-f
Comments
Post a Comment