Vios Network Commands :
Enable jumbo frames on the ent0 device
chdev -dev ent0 -attr jumbo_frames=yes
View settings on ent0 device
lsdev -dev ent0 -attr
List TCP and UDP sockets listening and in use
lstcpip -sockets -family inet
List all (virtual and physical) ethernet adapters in the VIOS
lstcpip -adapters
Equivalent of no -L command
optimizenet -list
Set up initial TCP/IP config (en10 is the interface for the SEA ent10)
mktcpip -hostname vios1 \
-inetaddr 10.143.181.207 \
-interface en10 \
-start -netmask 255.255.252.0 \
-gateway 10.143.180.1
Find the default gateway and routing info on the VIOS
netstat -routinfo
List open (TCP) ports on the VIOS IP stack
lstcpip -sockets | grep LISTEN
Show interface traffic statistics on 2 second intervals
netstat -state 2
Show verbose statistics for all interfaces
netstat -cdlistats
Show the default gateway and route table
netstat -routtable
Change the default route on en0 (fix a typo from mktcpip)
chtcpip -interface en0 \
-gateway \
-add 192.168.1.1 \
-remove 168.192.1.1
Change the IP address on en0 to 192.168.1.2
chtcpip -interface en0 \
-inetaddr 192.168.1.2 \
-netmask 255.255.255.0
No comments:
Post a Comment