No network at all.

Issues related to configuring your network
Post Reply
bluemind2005
Posts: 20
Joined: 2014/12/20 09:25:03

No network at all.

Post by bluemind2005 » 2016/07/03 12:54:19

Good Folks.

Looks like I am not on network at all.

Code: Select all

root@agent1 ~]# systemctl restart network.service
[root@agent1 ~]# systemctl status network.service
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: active (exited) since Sun 2016-07-03 22:41:06 AEST; 3min 46s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11954 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
  Process: 12132 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)

Jul 03 22:41:01 agent1 systemd[1]: Starting LSB: Bring up/down networking...
Jul 03 22:41:02 agent1 network[12132]: Bringing up loopback interface:  [  OK  ]
Jul 03 22:41:06 agent1 network[12132]: Bringing up interface enp0s3:  [  OK  ]
Jul 03 22:41:06 agent1 systemd[1]: Started LSB: Bring up/down networking.
[root@agent1 ~]# 

Cannot ping to my router and even google:

Code: Select all

[root@agent1 ~]# ping 192.168.1.1
connect: Network is unreachable
[root@agent1 ~]# ping google.com
ping: unknown host google.com
[root@agent1 ~]# 
Routing table:

Code: Select all

[root@agent1 ~]# ip route
169.254.0.0/16 dev enp0s3  scope link  metric 1002 
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1 
[root@agent1 ~]# ip route list
169.254.0.0/16 dev enp0s3  scope link  metric 1002 
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1 
[root@agent1 ~]# 


bluemind2005
Posts: 20
Joined: 2014/12/20 09:25:03

Re: No network at all.

Post by bluemind2005 » 2016/07/03 14:04:49

Clueless why I am not on network

Code: Select all

[root@agent1 ~]# ethtool --test enp0s3 online
The test result is PASS
The test extra info:
Register test  (offline)	 0
Eeprom test    (offline)	 0
Interrupt test (offline)	 0
Loopback test  (offline)	 0
Link test   (on/offline)	 0

[root@agent1 ~]# 

ip a output

Code: Select all

[root@agent1 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:84:c2:b6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.3/32 brd 192.168.1.3 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe84:c2b6/64 scope link 
       valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether 52:54:00:44:89:62 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
    link/ether 52:54:00:44:89:62 brd ff:ff:ff:ff:ff:ff
[root@agent1 ~]# ip route
169.254.0.0/16 dev enp0s3  scope link  metric 1002 
192.168.122.0/24 dev virbr0  proto kernel  scope link  src 192.168.122.1 
[root@agent1 ~]# 


giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: UK

Re: No network at all.

Post by giulix63 » 2016/07/04 09:29:34

Your netmask is wrong. 32 is a single IP address, so 192.168.1.3 and 192.168.122.1 are on two different subnets.
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.

bluemind2005
Posts: 20
Joined: 2014/12/20 09:25:03

Re: No network at all.

Post by bluemind2005 » 2016/07/05 11:26:32

Correct Netmask .32 was the issue:
Solution was to change PREFIX=32 to PREFIX=24 and I also added line NETMASK=255.255.255.0

Restarted network and then all good.

Thread can now be closed.

Post Reply