Header Shadow Image

Networking: connect: Network is unreachable

Getting this?

[root@sat01 ~] # ping
connect: Network is unreachable
[root@sat01 ~] # 

When you're on a separate VLAN?

[root@sat02 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
3: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 18:28:38:b0:00:01 brd ff:ff:ff:ff:ff:ff
    inet scope global ens3
       valid_lft forever preferred_lft forever
[root@sat02 ~]#

Solve by adding a default route:

[root@sat02 ~]# ip route add default via dev ens3

And verify:

[root@sat02 ~]# ip route
default via dev ens3 dev ens3 proto kernel scope link src
[root@sat02 ~]#


Leave a Reply

You must be logged in to post a comment.

  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License