Linux Scroll

Just another WordPress.com site

Routing

SHow routing table:

$ ip route show

$ route -n

Add static route:

$ ip route add {NETWORK} via {IP} dev {DEVICE}

$ ip route add 10.10.10.0/24 via 192.168.1.1 dev eth0
$ route add -net 10.10.10.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0

SHow allrouting table:

$ ip route show table all

$ ip route show table local
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: