Quote:
Originally Posted by R03L
/etc/sysconfig/network-scripts/eth0
Code:
GATEWAY0=192.168.1.1
NETMASK0=255.255.255.0
ADDRESS0=192.168.1.102
is the standart of this file..
i think created by networkmanager
|
I don't think that it's created by network manager... I think that it's a Red Hat thing. I think that it goes the other way around: network manager reads this file when setting routes, which is why your routes keep on getting messed up.
I think that you can change route-eth0 as follows:
Code:
NETMASK0=255.255.255.0
ADDRESS0=192.168.2.1
You don't need a gateway, because you're not sending packets past the 192.168.2.0 network. I believe that ADDRESS0 should match the ip address on eth0.
The routing on wlan0 will take care of its self, because the route is set dynamically when the IP address is assigned via DHCP.