LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2011, 12:33 PM   #1
cddodo
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Rep: Reputation: 0
How to get DSL and LAN working together in Ubuntu 10.04.2


Now I access to Internet through ADSL router. At the same time I want to run some service on my ubuntu, so I need a static LAN IP such as 192.168.1.100.

I use network-manager to config my network. But the problem is that if I click DSL to access the Internet. My eth0's static ip setting will be change. So I have to manually change it back to 192.168.1.100 by using ifconfig.

My problem is that is there any method that I can get the DSL and LAN static IP work together without typing ifconfig cmd every time?
 
Old 03-12-2011, 02:01 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Yes, configure your DSL modem/router to use a static IP and not use DHCP.
 
Old 03-13-2011, 12:42 AM   #3
cddodo
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for your reply.
But I don't think this is the problem. I already shut down the dhcp service of my router.
My situation is like this, I use network-manager to manage my network.
In the "Network Connection" I have Wired and DSL.
In Wired tab, I set up the LAN with static IP. say 192.168.1.100
In DSL tab, I set up my pppoe name and password.
But the problem is that :

If I use LAN, then I got
eth0 Link encap:Ethernet HWaddr 1c:6f:65:4e:d2:56
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::1e6f:65ff:fe4e:d256/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:73580 errors:0 dropped:0 overruns:0 frame:0
TX packets:67896 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:72792067 (72.7 MB) TX bytes:12291637 (12.2 MB)
Interrupt:33 Base address:0x2000

If I use DSL to access to the Internet, then
eth0 Link encap:Ethernet HWaddr 1c:6f:65:4e:d2:56
inet6 addr: fe80::1e6f:65ff:fe4e:d256/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:73971 errors:0 dropped:0 overruns:0 frame:0
TX packets:68394 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:73113338 (73.1 MB) TX bytes:12355522 (12.3 MB)
Interrupt:33 Base address:0x2000

ppp0 Link encap:Point-to-Point Protocol
inet addr: (my IP here) P-t-P: (some IP here) Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:353 errors:0 dropped:0 overruns:0 frame:0
TX packets:364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:309982 (309.9 KB) TX bytes:44478 (44.4 KB)

Please notice that the static IP of eth0 has been changed. If I use LAN again, eth0 will get 192.168.1.100, but the ppp0 connection is gone!
I can only use ifconfig eth0 192.168.1.100 to config it again without broken the ppp0 connection.
My question is, Can I get these two network working together without typing the ifconfig cmd everytime?

Last edited by cddodo; 03-13-2011 at 01:22 AM.
 
  


Reply



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
Onboard LAN on an ASUS M2N-SLI motherboard not working under Ubuntu 9.10 Krahazik Linux - Hardware 12 09-21-2010 08:45 PM
[SOLVED] Unable to get wireless LAN working in Ubuntu 9.10 Perrorist Linux - Wireless Networking 14 11-02-2009 07:09 AM
dsl and lan together d1l2w3 Linux - Networking 4 01-22-2005 03:34 AM
lan via dsl d1l2w3 Linux - Laptop and Netbook 1 01-21-2005 10:50 PM
DSL Lan??? oulevon Linux - Networking 3 05-20-2001 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:43 PM.

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