Help Me Understand How to Replicate My Network Routing from CentOS to Ubuntu

0
0
Asked By TechieGamer92 On

Hey everyone! I'm trying to transfer a network configuration from an older CentOS system to a newer Ubuntu setup, but I'm hitting a wall. My CentOS machine can successfully ping a device behind its gateway, but my Ubuntu machine just can't make the same connection!

I've dug into the route configuration and it seems like that's where the issue lies. Everything else is the same—same VLAN, firewall settings, and security configurations. The destination machine is also set up to allow pings from both machines.

I'm not super experienced with the 'ip route' command, and I'm struggling to grasp how to replicate the default gateway configuration. I know I should probably read the manual more, but I'm stuck after a few hours of troubleshooting! Any assistance would be greatly appreciated!

Here's the route config for both systems:

**CentOS (working)**
```
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 100 0 0 ens32
172.16.XX.XXX 0.0.0.0 255.255.255.XXX U 100 0 0 ens32
```

**Ubuntu (broken)**
```
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.16.XX.YYY 0.0.0.0 UG 0 0 0 ens160
172.16.XX.XXX 0.0.0.0 255.255.255.XXX U 0 0 0 ens160
```

2 Answers

Answered By NetworkWizard77 On

It looks like the IP addresses are private, so there's no need to mask them. Just make sure the ‘XX’ parts are identical in all your routes. If they aren't, that could be the issue.

TechieGamer92 -

Yes, they’re all the same!

Answered By AdminPro123 On

Have you checked if the kernel IP routing settings are enabled? They might be tucked away in `/proc` or `/sys`. It's worth taking a peek to see if something's off with routing in Ubuntu.

TechieGamer92 -

I’m not really sure what that is. Everything else on the network works fine, it’s just that firewall that I can’t reach.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.