9

Permanent routing (Ubuntu 13.04)

view full story
linux-howto

http://ubuntuforums.org – I have 2 connections: wlan0 (gw: 192.168.1.1) and eth0 (gw: 192.168.2.1). My default connection is wlan0, but I wanted some websites load through my eth0, so I set up routing for those websites/IPs like this: Code: route add -net 31.135.208.0/21 gw 192.168.2.1 dev eth0 This works, however is not permanent (disappears after reboot). I tried to put this code in /etc/network/interfaces like this: Code: up route add -net 31.135.208.0/21 gw 192.168.2.1 dev eth0 but when I restart Ubuntu, it starts without networking (it crashes). I also put these lines into that file: Co (Hardware)