< All Topics
Print

ifconfig


ifconfig (interface configurator)

ifconfig enp0s3 down

ifconfig enp0s3 up

Add IP address

ifconfig enp0s3 192.168.50.10

ifconfig enp0s3:1 192.168.50.10 netmask 255.255.255.0 up

Netstat

display the status of TCP and UDP

netstat -tulpn

display the status of TCP and UDP and current connections

netstat -tulpna

Route

View, add and delete IP routing table in Linux.

route -n

route add -net 192.168.55.10 netmask 255.255.255.0 dev enp0s3

route add default gw 192.168.55.1

route delete 192.168.55.255 netmask 255.255.255.0 192.168.55.1

Ip a

Get the IP address

ip a

Add the IP address

ip addr add 192.168.50.10/24 dev enp3s5

Next rsync