rendered paste body# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
# automatically added when upgrading
auto lo eth1 eth0
iface lo inet loopback
iface eth1 inet dhcp
iface eth0 inet static
address 10.0.10.1
netmask 255.255.255.0
network 10.0.10.0
broadcast 10.0.11.255
gateway 10.0.10.1
---------------------------------------------
dhcpd.conf
---------------------------------------------
ddns-update-style none;
# option definitions common to all supported networks...
option domain-name "xor.cx";
option domain-name-servers 66.82.24.8, 66.82.24.4;
default-lease-time 1200;
max-lease-time 14400;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
#subnet 10.152.187.0 netmask 255.255.255.0 {
#}
# This is a very basic subnet declaration.
subnet 10.0.10.0 netmask 255.255.255.0 {
range 10.0.10.101 10.0.10.254;
option broadcast-address 10.0.10.1 ;
option routers 10.0.11.1;
}
------------------------------------------------
#ifconfig
------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:50:2C:0A:0E:AB
inet addr:10.0.10.1 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1721 errors:0 dropped:0 overruns:0 frame:0
TX packets:913 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:125010 (122.0 KiB) TX bytes:70506 (68.8 KiB)
Base address:0xa000 Memory:f4000000-f4020000
eth1 Link encap:Ethernet HWaddr 00:50:04:50:7D:DD
inet addr:10.0.11.102 Bcast:10.0.11.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3066 errors:0 dropped:0 overruns:0 frame:0
TX packets:3310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1352676 (1.2 MiB) TX bytes:270262 (263.9 KiB)
Interrupt:11 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1131 errors:0 dropped:0 overruns:0 frame:0
TX packets:1131 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:178945 (174.7 KiB) TX bytes:178945 (174.7 KiB)
----------------------------------------
netstat -nr
----------------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.11.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
0.0.0.0 10.0.11.1 0.0.0.0 UG 0 0 0 eth1