Here's the output from ifconfig and netstat -nr and below that is the contents of my interfaces file (from /etc/network). The ifconfig and netstat results are both while set to dynamic IP.
NOTE: when it gets the IP address via dynamic, it gets 10.1.1.103 but I want a static IP of 10.1.1.1. That's the reason for that discrepancy -- I did however try using a static IP of 10.1.1.103. And I also deleted the IP lease from the router's memory before rebooting the RasPi with the static IP assigned.
Any ideas?
eth0 Link encap:Ethernet HWaddr b8:27:eb:86:c3:a4
inet addr:10.1.1.103 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe86:c3a4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1546 errors:0 dropped:0 overruns:0 frame:0
TX packets:627 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:127067 (124.0 KiB) TX bytes:194397 (189.8 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:212 errors:0 dropped:0 overruns:0 frame:0
TX packets:212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20155 (19.6 KiB) TX bytes:20155 (19.6 KiB)
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.1.1.1 0.0.0.0 UG 0 0 0 eth0
10.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet static
address 10.1.1.3
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.1.1.1