I was trying to capture localhost traffic with Ethereal, which doesn't work without re-routing localhost traffic to your router gateway. I didn't get the route command quite right, and messed up my routing table. I typed route -f to clear the routing table and rebooted, but when I finished rebooting, the routing table wasn't restored to its original state.
This is very much a learning question if someone would be happy to explain a couple of concepts.
Ranmaru wrote:I think the problem is that NetworkManager generally prefers ethernet over WiFi and thus tries to route all traffic through eth0 as soon as you connect the cable.I guess you could fix it by using your routing table to prefer the wireless connection over ethernet, but then you would have the problem the other way around.
Hi,
I've created a script in /etc/network/if-up.d/my_script so that when an interface gets up, it creates a new routing table (and deletes it when the interface goes down):
Here is the script:
Code:
echo "Setup routing table \"$IFACE\" for address \"$IF_ADDRESS\", gateway \"$IF_GATEWAY\""
ip rule add from $IF_ADDRESS table $IFACE
# cree la
Is it possible to add in the routing table a description for a route?
Something like:
ip route add 192.168.10.1/24 via 192.168.1.1 description "route to the example network"
I would like when I am running ip route show to see these descriptions to be able to manage easier the routing table.
I would like redirect my tcp traffic to IRC throught a VPN.
I mark the packets with iptables and create a new route for this packets:
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
iptables -t mangle -A OUTPUT !
I have OpenSuse 11.1 installed in a system as server (without graphics). We have 3 NICs, 2 of them connected to 2 different ISPs through gateways, as follows:
IPs for NICs: IP1=192.168.5.2/24; IP2=192.168.6.2/24 dev=eth2
Gateways: GW1=192.168.5.10; GW2=192.168.6.10 dev=eth3
Third NIC connected into the internal network with and IP=192.168.11.2/24 dev=eth0
I have a server running ubuntu 10.04 with four interfaces. eth0 and eth1 have static WAN ip's, and eth2 and eth3 are connected to two separate NAT networks 192.168.0.0/24 and 192.168.1.0/24 respectively. eth0 is masqueraded and NAT traffic from eth2 is forwarded to it.
In using CentOS I have some problem in place the route in correct place my routing table entries are like this:
10.9.*.0/24 dev eth0.102
10.*.*.0/24 dev eth0.101
I added one rule for a single host which is in the network 10../0/24 but when I need the route it is placed below the route for 10...0/24 network.
10.9.*.0/24 dev eth0.102
10.*.*.0/24 dev eth0.101
10.*.*.2/32 dev eth0.103
But the ne