LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-04-2006, 06:38 AM   #1
Andrea_44
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Internet Connection issue with 2 Network interfaces


Hi,

I have two network interfaces (etho & eth1) on my ubuntu machine, both working properly.

eth0 is connected to another ubuntu PC.
eth1 is connected to a wireless lan for Internet.

The problem is I cannot connect to the Internet. Firefox return page not found for all websites, I cannot ping google etc.

However, if I disconnect eth0(connected to a PC) and restart my machine, I am able use the Internet via eth1.

How could I configure my machine use eth1 to connect to the Internet while eth0 is also connected to another PC.

Thank You,
Andrea

Following is my ifconfig:

eth0 Link encap:Ethernet HWaddr 08:00:46:6A:0C:B0
inet addr:169.254.4.217 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::a00:46ff:fe6a:cb0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8208 (8.0 KiB) TX bytes:3006 (2.9 KiB)

eth1 Link encap:Ethernet HWaddr 00:02:2D:6D:C4:65
inet addr:172.19.96.201 Bcast:172.19.97.255 Mask:255.255.254.0
inet6 addr: fe80::202:2dff:fe6d:c465/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36287 errors:0 dropped:0 overruns:0 frame:0
TX packets:9456 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14369032 (13.7 MiB) TX bytes:1486526 (1.4 MiB)
Interrupt:9 Base address:0x3040
 
Old 10-05-2006, 03:08 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Look at your default gateway using the 'route' command. Your default gateway is usually defined according to the network on your eth0 NIC but you can change it to point to the network on your eth1 NIC by adding the 'route default gw 192.168.1.1' command in /etc/rc.local.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet connection sharing in slackware - nic issue kfaday Slackware 6 08-31-2006 09:37 PM
Internet connection issue space_invader64 SUSE / openSUSE 2 03-15-2006 03:32 PM
Internet Connection issue AzNsnake666 Linux - Software 2 12-30-2005 06:42 PM
RedHat 9 Network/Internet Issue omega147 Linux - Networking 7 10-21-2003 12:20 PM
network connection over internet tcarradine Linux - Networking 0 07-10-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration