Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created July 11, 2012 20:37
Show Gist options
  • Save mayhem/3093209 to your computer and use it in GitHub Desktop.
Save mayhem/3093209 to your computer and use it in GitHub Desktop.
root@totoro:~# /sbin/ifconfig eth0 10.1.3.1 netmask 255.255.255.0 broadcast 10.1.3.255
root@totoro:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.1.0 * 255.255.255.0 U 0 0 0 eth1
10.1.3.0 * 255.255.255.0 U 0 0 0 eth0
default gateway.localdo 0.0.0.0 UG 100 0 0 eth1
root@baron:~# /sbin/ifconfig eth0 10.1.3.2 netmask 255.255.255.0 broadcast 10.1.3.255
root@baron:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.1.0 * 255.255.255.0 U 0 0 0 eth1
10.1.3.0 * 255.255.255.0 U 0 0 0 eth0
default gateway.localdo 0.0.0.0 UG 100 0 0 eth1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment