Header Shadow Image


Networking: connect: Network is unreachable

Getting this?

[root@sat01 ~] # ping 192.168.0.6
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 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
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 10.0.0.150/24 scope global ens3
       valid_lft forever preferred_lft forever
[root@sat02 ~]#

Solve by adding a default route:

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

And verify:

[root@sat02 ~]# ip route
default via 10.0.0.1 dev ens3
10.0.0.0/24 dev ens3 proto kernel scope link src 10.0.0.150
[root@sat02 ~]#

Regards,
AC

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

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

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

 

0
Would love your thoughts, please comment.x
()
x
The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.