Ive followed all all the instructions on configuring a staic ip but there all based around the fact that the primary network interface is listed as eth0 but when i type ifconfig it states that mine is eth2. I have applied the following to /etc/network/interfaces but on restart i can no longer see any networks.
Can anyone shed some light on what i may be doing wrong.
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
ben@ben-laptop:~$ ifconfig
eth2 Link encap:Ethernet HWaddr 00:24:2c:15:5b:bc
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::224:2cff:fe15:5bbc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9013 errors:0 dropped:0 overruns:0 frame:5926
TX packets:6913 errors:6 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10284958 (10.2 MB) TX bytes:825670 (825.6 KB)
Interrupt:18
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:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9238 (9.2 KB) TX bytes:9238 (9.2 KB)
Bookmarks