User Tools

Site Tools


Network Configuration


ping -c4
ss -tul All UDP and TCP port listening
systemctl status NetworkManager
hostnamectl status
hostname set-hostname <newname>


List network cards

ip link list

List statistics network cards

ip -s link

Display device attributes

ip address show

Just up device.

ip address show up

Live IP configuration (non persistent)

ip addr add dev eth1
ip addr del dev eth1

Route list.

ip route list
ip route show

Obtain route use for

ip route get to

Print cache.

ip route ls cache

Flush route cache.

ip route flush cache

List rules.

ip rule show

Drop routing form on the principal table

ip rule add table main type prohibit from

In ip rule add, type posibilities.

  • blackhole - the rule prescribes to silently drop the packet.
  • unreachable - the rule prescribes to generate a ’Network is unreachable’ error.
  • prohibit - the rule prescribes to generate ’Communication is administratively prohibited’ error.

File witch contains name table list.


Create a new table.

echo 200 table33 >> /etc/iproute2/rt_tables

Add default route on this table.

ip route add default via dev eth0 table table33


ip route show table table33

Add new rule for the packets from routed on the new table created (table33)

ip rule add from table table33


systemctl status NetworkManager
nmcli con shown
mcli con show <devicename>
nmcli dev status
ncli dev show <devicename>
nmcli con down eth0 && nmcli con up eth0
man nmcli-examples
nmcli con reload
network_configuration.txt · Last modified: 2021/01/21 21:42 (external edit)