Linux Internet

Soldato
Joined
29 Apr 2007
Posts
4,841
Location
London
This is confuzzling.

In vista I type in my routers ip 192.168.2.1 and it shows the router settings

ubuntu I do the same and it says cannot connect to server. Internet works fine though.

Any help is much appreciated
 
To get the ip address, bring up a console and type 'sudo ifconfig'. Should get something like:

Code:
tickle growse # ifconfig
eth2      Link encap:Ethernet  HWaddr 00:04:23:64:7D:C3
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: 2001:770:161:0:204:23ff:fe64:7dc3/64 Scope:Global
          inet6 addr: fe80::204:23ff:fe64:7dc3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:8982  Metric:1
          RX packets:22554676 errors:0 dropped:1 overruns:0 frame:0
          TX packets:40491433 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:330799268 (315.4 Mb)  TX bytes:1643946929 (1567.7 Mb)
          Base address:0xb800 Memory:ee0c0000-ee0e0000

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:266247 errors:0 dropped:0 overruns:0 frame:0
          TX packets:266247 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:64581951 (61.5 Mb)  TX bytes:64581951 (61.5 Mb)

In this case, my ip is 192.168.0.2.
 
eth0 Link encap:Ethernet HWaddr 00:18:F3:4B:C8:67
inet addr:192.168.2.2 Bcast:179.168.2.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:16

eth1 Link encap:Ethernet HWaddr 00:17:3F:4E:5F:01
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::217:3fff:fe4e:5f01/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17994 errors:3759 dropped:685 overruns:0 frame:3748
TX packets:12923 errors:43 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21881929 (20.8 MB) TX bytes:1929096 (1.8 MB)

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:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6523 (6.3 KB) TX bytes:6523 (6.3 KB)
 
You seem to have an ip address of 192.168.2.2 on both nics, but it seems to be using eth1. Can you type 'route' - output should look like:

Code:
tickle growse # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth2
loopback        *               255.0.0.0       U     0      0        0 lo
default         nosey.mrmen.hom 0.0.0.0         UG    0      0        0 eth2
 
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 1000 0 0 eth0
default ubuntu 0.0.0.0 UG 100 0 0 eth1
default ubuntu 0.0.0.0 UG 100 0 0 eth0

sorry the table format doesn't stay
 
Last edited:
linux

filesystem/etc/network/insterfaces



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
network 192.168.2.2
broadcast 179.168.2.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 212.74.112.66

iface eth1 inet static
address 192.168.2.2
netmask 255.255.255.0
gateway 192.168.2.1
wireless-key 1A437ACA30238A6E4D24F488B1
wireless-essid belkin54g

auto eth1

auto eth0
windows

Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\Compaq_Administrator>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection 8:

Connection-specific DNS Suffix . : Belkin
Link-local IPv6 Address . . . . . : fe80::d9bb:9c00:1d0e:d69e%18
IPv4 Address. . . . . . . . . . . : 192.168.2.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 8:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Local Area Connection* 10:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

C:\Users\Compaq_Administrator>

ADSL Status CONNECTED
Data Rate
Downstream/Upstream 7712Kb/832Kb
Connection Type PPPoA
WAN MAC Address 00:11:50:2F:7D:92
WAN IP 80.41.249.253
Subnet Mask 255.0.0.0
Default Gateway 212.74.111.192
Primary DNS Address man-cache-1-a-1.ns.uk.tiscali.com
Secondary DNS Address man-cache-0-a-1.ns.uk.tiscali.com


/end of windows info

other info:

Router IP Address 192.168.2.1

(access key here)


212.74.112.66
Secondary DNS 212.74.112.67

channel 11
belkin54g
 
Last edited:
Think we've missed some things:

Can you do the following:

Code:
ping 192.168.2.1

then

Code:
traceroute overclockers.co.uk

and post the results?
 
ross@ubuntu:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
From 192.168.2.2 icmp_seq=1 Destination Host Unreachable
From 192.168.2.2 icmp_seq=2 Destination Host Unreachable
From 192.168.2.2 icmp_seq=3 Destination Host Unreachable
From 192.168.2.2 icmp_seq=4 Destination Host Unreachable
From 192.168.2.2 icmp_seq=5 Destination Host Unreachable
From 192.168.2.2 icmp_seq=6 Destination Host Unreachable
From 192.168.2.2 icmp_seq=7 Destination Host Unreachable
From 192.168.2.2 icmp_seq=8 Destination Host Unreachable
From 192.168.2.2 icmp_seq=9 Destination Host Unreachable
From 192.168.2.2 icmp_seq=10 Destination Host Unreachable
From 192.168.2.2 icmp_seq=11 Destination Host Unreachable
From 192.168.2.2 icmp_seq=12 Destination Host Unreachable
From 192.168.2.2 icmp_seq=13 Destination Host Unreachable
From 192.168.2.2 icmp_seq=14 Destination Host Unreachable
From 192.168.2.2 icmp_seq=15 Destination Host Unreachable
From 192.168.2.2 icmp_seq=16 Destination Host Unreachable
From 192.168.2.2 icmp_seq=17 Destination Host Unreachable
From 192.168.2.2 icmp_seq=18 Destination Host Unreachable
From 192.168.2.2 icmp_seq=19 Destination Host Unreachable
From 192.168.2.2 icmp_seq=20 Destination Host Unreachable
From 192.168.2.2 icmp_seq=21 Destination Host Unreachable
From 192.168.2.2 icmp_seq=22 Destination Host Unreachable
From 192.168.2.2 icmp_seq=23 Destination Host Unreachable
From 192.168.2.2 icmp_seq=24 Destination Host Unreachable

--- 192.168.2.1 ping statistics ---
26 packets transmitted, 0 received, +24 errors, 100% packet loss, time 25074ms
, pipe 3
ross@ubuntu:~$
 
As said above - both NICs having the same ip address should be addressed.

How about do the easy thing and either:

a) Unless you are using both NICs, disable one.
b) Manually set the ip address of one NIC to something else
c) Set both NICs to DHCP

The latter two are less preferable, as it's generally a good idea to not have two NICs from the same box on the same subnet.
 
Nic is your network interface card, basically as said you have two of them both using the same IP address, which is probably causing a conflict.

you can use ifconfig to change the ip (temporarily), i.e ifconfig eth0 192.168.1.x
 
Last edited:
Nic is your network interface card, basically as said you have two of them both using the same IP address, which is probably causing a conflict.

you can use ifconfig to change the ip, i.e ifconfig eth0 192.168.1.x

I went in the BIOS and disabled onboard LAN.

It worked and I can now access the router settings on 192.168.2.1

Thank you all for helping me :D
 
Back
Top Bottom