NetworkManager

Leonard Chatagnier lenc5570 at sbcglobal.net
Thu Oct 9 02:17:29 UTC 2008


--- On Wed, 10/8/08, NoOp <glgxg at sbcglobal.net> wrote:

> From: NoOp <glgxg at sbcglobal.net>
> Subject: Re: NetworkManager
> To: ubuntu-users at lists.ubuntu.com
> Date: Wednesday, October 8, 2008, 1:06 PM
> On 10/07/2008 02:03 PM, Leonard Chatagnier wrote:
> > --- On Tue, 10/7/08, Derek Broughton
> <news at pointerstop.ca> wrote:
> > From: Derek Broughton <news at pointerstop.ca>
> > Subject: Re: NetworkManager
> > To: ubuntu-users at lists.ubuntu.com
> > Date: Tuesday, October 7, 2008, 9:58 AM
> > 
> > lchata at ubuntu-hardy-64bit:/etc/init.d$ cat
> /etc/resolv.conf
> > ### BEGIN INFO
> > #
> > # Modified_by:  NetworkManager
> > # Process:      /usr/bin/NetworkManager
> > # Process_id:   5207
> > #
> > ### END INFO
> > 
> > search gateway.2wire.net
> > 
> > 
> > nameserver 192.168.1.254
> > 
> > 
> > lchata at ubuntu-hardy-64bit:/etc/init.d$
> > 
> 
> /etc/resolv.conf _absolutely_ gets written to by the
> network manager
> when using "Roaming" as you can see from the
> above. That is how
> "Roaming" mode works. As Leonard has shown,
> it's easy to demontrate this:
> 
> 1. Open NM and remove any existing DNS entries except for
> the router
> gateway (leave the NM dialog open for all of the
> following).
> 
> Set NM for "Roaming mode" and
> sudo /etc/init.d/networking restart
> cat /etc/resolv.conf
> 
> You will see that Network Manager wrote into the
> /etc/resolv.conf file
> as shown in Leonard's output.
> 
> 2. Now go back to NM and set it for DHCP. You will see that
> the
> 
> ### BEGIN INFO
> #
> # Modified_by:  NetworkManager
> # Process:      /usr/bin/NetworkManager
> 
> *is now gone* and instead only the nameserver entries
> obtained from the
> gateway remain:
> 
> nameserver xxx.xxx.xxx.xxx
> 
> 3. Now go back to NM and set it for a static IP address.
> Same as 2 above.
> 
> 4. Now go back and repeat #1 above (set NM for Roaming
> mode). You will
> again see the "Modified_by:  NetworkManager"
> entries. Nice touch - NM
> tells you that it has modified resolv.conf and what
> it's process ID is.
> 
> It's too bad that other processes (dhclient, openvpn
> etc) don't write in
> the "Modified by" as NetworkManger does.
> 
> Anyway...
> 
> http://www.google.com/search?hl=en&q=Ubuntu+%2Bnetwork+manager+%2Bresolv.conf
> 
> BTW: Leonard, why are you set for roaming mode? I'd set
> for static IP's
> in your particular setup, or just standard DHCP. Also
> instead of setting
> your DNS to "search gateway.2wire.net" just enter
> the IP address of
> gateway.2wire.net (192.168.1.254) in the DNS box (above the
> Search
> Domains) and your dns resolution will be faster... it
> doesn't need to
> resolve gateway.2wire.net first. Or for even faster, put in
> your DNS's
> directly instead of 192.168.1.254:
> 
> nameserver 68.94.156.1
> nameserver 68.94.157.1
> 
> 

Ahhh, NoOp, your giving me credit for something I didn't do.  What you refer to was done in gutsy and I'm running hardy now on a separate partition and yes my DSL is slow.  AAMOF, the old computer still running gutsy has the static IP but this hardy installed itself with alt CD as DHCP IP that originally had. I haven't a clue why I'm in roaming mode or how I got there. Maybe while I was in one of my experimenting modes and just don't remember.
With network settings I unclicked roaming mode, yes it was activated. I reconfigured as static IP with:

IP Address:    192.168.1.1
Subnet Mask:   255.255.255.0
Gateway Addr:  192.168.1.254

Then did sudo /etc/init.d/networking restart and got this out put:

lchata at ubuntu-hardy-64bit:/etc/init.d$ sudo /etc/iknit.d/networking restart
sudo: /etc/iknit.d/networking: command not found
lchata at ubuntu-hardy-64bit:/etc/init.d$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...RTNETLINK answers: No such process
SIOCDELRT: No such process
                                                                                                                                                [ OK ]
lchata at ubuntu-hardy-64bit:/etc/init.d$  * Stopping NTP server ntpd
   ...done.
 * Starting NTP server ntpd
   ...done.
ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1e:90:6a:e7:6e
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:90ff:fe6a:e76e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:237287 errors:0 dropped:0 overruns:0 frame:0
          TX packets:221064 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:154739657 (147.5 MB)  TX bytes:25788811 (24.5 MB)
          Interrupt:16

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:612 errors:0 dropped:0 overruns:0 frame:0
          TX packets:612 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:69806 (68.1 KB)  TX bytes:69806 (68.1 KB)

Looks like it took the changes in spite of the error.  You know I'm not network savvy so maybe we can review what I did off list.

Leonard Chatagnier
lenc5570 at sbcglobal.net






More information about the ubuntu-users mailing list