Hi,
please have a lock at the diagram i created for clarification.
I hope it aids in getting a fast overview of my setup. Thanks to everybody in advance who is taking the time to look at my problem. I tried to present the information as structured as possible.
Problem: Howto Setup Routing on the Ubuntu Desktop.
Goal/Szenario
The part of drawing in the ellipse is always on. More specific fritzbox is always on and can wake on lan start the ubuntu desktop. The rest of the network outside of the ellipse (which is my gbit network) is powered off while i am not at home. When I am home I want to connect my Laptop to the Gbit-Switch and want to use Gbit network speed between my ubuntu desktop and laptop. While I am out only the minimum setup should be powered to keep the electricity bill low.
Problem/Question
I am not able to setup routing corretly on my ubuntu desktop.
Current Approach
Here is what I did to configure it like I thought it should work.
1. Looking at routing table after boot
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.11.12.0 * 255.255.255.0 U 0 0 0 eth0
10.11.12.0 * 255.255.255.0 U 0 0 0 eth1
default fritz.box 0.0.0.0 UG 0 0 0 eth1
default fritz.box 0.0.0.0 UG 0 0 0 eth0
2. Remove duplicate defaults routes on the two devices
Code:
route del default eth0
route del default eth0
3. Establish route to fixed ip of my router
Code:
route add -net default gw 10.11.12.13 dev eth1
4. Check new routing table
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.11.12.0 * 255.255.255.0 U 0 0 0 eth0
10.11.12.0 * 255.255.255.0 U 0 0 0 eth1
default fritz.box 0.0.0.0 UG 0 0 0 eth1
Don't knwo why the ip again is resolved to fritz.box here.
5. Test connection
But still i can't ping inet domains like google.de reliable. Some packages get dropped (missing sequence nbrs)
Code:
PING google.de (74.125.43.99) 56(84) bytes of data.
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=30 ttl=50 time=52.6 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=31 ttl=50 time=52.6 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=32 ttl=50 time=52.3 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=33 ttl=50 time=52.7 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=34 ttl=50 time=52.6 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=35 ttl=50 time=52.7 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=36 ttl=50 time=53.1 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=37 ttl=50 time=52.5 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=66 ttl=50 time=54.1 ms
64 bytes from bw-in-f99.1e100.net (74.125.43.99): icmp_seq=67 ttl=50 time=52.8 ms
See my /etc/network/interfaces
eth0 is the gbit connection to the switch
eth1 is the 100mbit connection to the fritzbox
Code:
#define initialization sequence of hardware devices
auto lo eth0 eth1
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
iface eth1 inet dhcp
If I can provide more information to aid you helping me please let me know.
Best Regards
Bookmarks