First of all, we don’t use “NetworkManager” :

[root@fedora22 ~]# systemctl is-active NetworkManager.service
inactive

We use “network” service :

[root@fedora22 ~]# systemctl is-active network.service
active

Currently, I have 2 network interface :

  • Access mode :
[root@fedora22 ~]# ip addr show dev eno16780032
2: eno16780032: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
 link/ether 00:0c:29:9e:e3:8d brd ff:ff:ff:ff:ff:ff
 inet 192.168.1.200/24 brd 192.168.1.255 scope global eno16780032
 valid_lft forever preferred_lft forever
 inet6 fe80::20c:29ff:fe9e:e38d/64 scope link
 valid_lft forever preferred_lft forever
  • Trunk (VLAN 100) mode :
[root@fedora22 ~]# ip addr show dev eno33559296.100
5: eno33559296.100@eno33559296: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default
 link/ether 00:0c:29:9e:e3:97 brd ff:ff:ff:ff:ff:ff
 inet 192.168.2.200/24 brd 192.168.2.255 scope global eno33559296.100
 valid_lft forever preferred_lft forever
 inet6 fe80::20c:29ff:fe9e:e397/64 scope link
 valid_lft forever preferred_lft forever

By default, I got those routes :

[root@fedora22 ~]# ip route list
default via 192.168.1.1 dev eno16780032
169.254.0.0/16 dev eno16780032 scope link metric 1002
169.254.0.0/16 dev eno33559296 scope link metric 1003
169.254.0.0/16 dev eno33559296.100 scope link metric 1004
192.168.1.0/24 dev eno16780032 proto kernel scope link src 192.168.1.200
192.168.2.0/24 dev eno33559296.100 proto kernel scope link src 192.168.2.200

So, I would like to remove this undesirable¬†“169.254.0.0/16” route :

  • To do that, add this line in “/etc/sysconfig/network” configuration file
[root@fedora22 ~]# cat /etc/sysconfig/network
# Created by anaconda
NOZEROCONF=yes
  • Then restart the service :
[root@fedora22 ~]# systemctl restart network.service

And this route disappeared :

[root@fedora22 ~]# ip route list
default via 192.168.1.1 dev eno16780032
192.168.1.0/24 dev eno16780032 proto kernel scope link src 192.168.1.200
192.168.2.0/24 dev eno33559296.100 proto kernel scope link src 192.168.2.200

Define the default gateway in “/etc/sysconfig/network” configuration file :

[root@fedora22 ~]# cat /etc/sysconfig/network
 # Created by anaconda
 NOZEROCONF=yes
 GATEWAY="192.168.1.1"

Restart “network” service :

[root@fedora22 ~]# systemctl restart network.service

 

 

Create PDF    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *


*