SLES network config question
1 Attachment(s)
Hi experts
I am confused by something: this VM 4v7: It has the following: Code:
4v7:~ # ifconfig What I am confused about is why is the GW from route for 10.131.226.0 a * instead of 10.131.226.1? Right now this VM is problematic because it can reach some IPs on the same subnet but not others. so 10.131.224.100 is reachable but .101 is not. and they are all on the same physical switch as well. I know from basic routing that the weirdness from 226 shouldn't affect 224, but I have plenty of working examples with similar setups and this is the only thing out of place. any help on this is greatly appreciated. Thanks EDIT: no firewall either. This VM was cloned from a working VM, I just cloned it and modified the IPs. EDIT 2: I might have an IP conflict it seems... will double check |
If you aren't on the same subnet as another IP, then you have to send packets through a gateway to reach it. If you are on the same subnet and don't need to send through a gateway, then the routing table should have '*' for no gateway required.
|
hmmm, true. but here is where it doesn't make sense:
1. I have the same setup (in the attached screenshot) via yast but some show gateway for 226.1 and this one shows a * 2. I have 3 networks. network A is my default, it's my default gw. Network B and C are 226.x and 224.x, so therefore both should have a gateway in the routing table. But it doesn't for 226.x. thanks |
Hi jzoudavy,
As you can see from the output of the "route" command, "G" is the flag that signifies that the route is to a gateway. If this flag is not present then we can say that the route is to a directly connected destination. So check the routes that you had added (/etc/sysconfig/network/routes). The second one that I chcecked is at ifconfig eth3 HWaddr 00:50:56:11:36:46 eth10 HWaddr 00:50:56:00:36:46 and at the attached file the device is the same for the both networks. Maybe there is a conflict (This VM was cloned from a working VM, I just cloned it and modified the IPs). You have to change and the MAC addresses. BRs, Spyros |
All times are GMT -5. The time now is 11:27 AM. |