Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
57: enp8s0.100@enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 50:3e:aa:04:e9:e9 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.1/24 brd 192.168.100.255 scope global noprefixroute enp8s0.100
valid_lft forever preferred_lft forever
inet6 fe80::7fe5:411a:7cfb:c07e/64 scope link noprefixroute
valid_lft forever preferred_lft forever
58: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 50:3e:aa:04:f3:e0 brd ff:ff:ff:ff:ff:ff
inet 10.100.100.1/24 brd 10.100.100.255 scope global noprefixroute bond0
valid_lft forever preferred_lft forever
inet6 fe80::eb36:96d2:fbe9:abe1/64 scope link noprefixroute
valid_lft forever preferred_lft forever
bond0 is connected to LAN
enp8s0.100 is the VLAN (192.168.100.0/24)
ip route
Code:
default via 10.100.100.6 dev bond0 proto static metric 300
default via 192.168.100.1 dev enp8s0.100 proto static metric 400
10.100.100.0/24 dev bond0 proto kernel scope link src 10.100.100.1 metric 300
192.168.100.0/24 dev enp8s0.100 proto kernel scope link src 192.168.100.1 metric 400
Last try:
Code:
add /etc/sysctl.conf
net.ipv4.ip_forward=1
vi /etc/sysconfig/network-script/route-vlan100
10.100.100.0/24 via 10.100.100.1 dev bond0
systemctl network restart
still no luck
problem:
VLAN users (192.168.100.0/24) are unable to ping any hosts in LAN (10.100.100.0/24)
and I thought it makes sense, since the source is not from 10.100.100.0/24 ..
hmmm, is it possible to route to ifcfg-bond0 if the destination to 10.100.100.0/24?
default via 10.100.100.6 dev bond0 proto static metric 300
default via 192.168.100.1 dev enp8s0.100 proto static metric 400
10.100.100.0/24 dev bond0 proto kernel scope link src 10.100.100.1 metric 300
192.168.100.0/24 dev enp8s0.100 proto kernel scope link src 192.168.100.1 metric 400
I don’t think two default routes without further routing rules is a good idea.
You haven't told us how your vlan hosts are configured. Static IP's or DHCP assigned? If the latter what DNS IP is assigned? (You should be able to perform check the IP path with traceroute etc).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.