Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


[root@batpc2 ~]# ip route
default via 192.168.0.1 dev enp63s0 proto static metric 100
35.188.59.75 via 127.0.0.1 dev lo                                                    ##block bad website (wink)
192.168.0.0/24 dev enp63s0 proto kernel scope link src 192.168.0.22 metric 100
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1



Add a new route:

ip route add default via 192.168.0.1 dev eth0


ip route help


Routing table

route man:

Centos:

[root@centos66 ~]# route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.9.200.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1

169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth1



[root@centos66 ~]# route -nee

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt

192.9.200.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1     0     0      0

169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth1     0     0      0




Arch linux:

[root@centos66 ~]# ip route

192.9.200.0/24 dev eth1  proto kernel  scope link  src 192.9.200.1

169.254.0.0/16 dev eth1  scope link  metric 1003


  • No labels