ip route usage

Rogelio Serrano rogelio.serrano at gmail.com
Fri Sep 8 17:25:43 UTC 2006


On 9/9/06, Rogelio Serrano <rogelio.serrano at gmail.com> wrote:
> how do i use ip to set up my routes?
>
> ip addr add 192.168.1.3 dev eth0
> ip route add 192.168.1.0/24 dev eth0
> ip route add default via 192.168.1.1 says network unreachable
>
> ping 192.168.1.1 works
> nslookup www.google.com works
> but ping www.google.com say network unreachable
>
> what am i missing?
>

ok this worked:

ip address add 192.168.1.3 dev eth0
ip address add 192.168.1.3/24 dev eth0 scope link
ip route add default via 192.168.1.1

is this the simplest setup? is it right?

-- 
the thing i like with my linux pc is that i can sum up my complaints in 5 items



More information about the busybox mailing list