Re: static ip in f11, f12 using networkmanager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/10/2010 12:04 PM, jackson byers wrote:
> Phil Meyer wrote:
>    
>> NM_CONTROLLED=
>>      
>    
>> Depending upon what you want to do.
>>      
>    
>> Will you ever use a Cell card on this system?
>> Will you ever change IPs temporarily, or often?
>>      
>    
>> It can be useful to let Network Manager manage the ifcfg-eth0 file.
>>      
>    
>> If you set:
>>     NM_CONTROLLED=yes
>>      
>    
>> Network Manager will 'keep and eye' on the file,
>> and automatically make any changes you specify there,
>> without having to restart anything.
>>      
>    
>> This also allows Network Manager to decide if that route is
>> still appropriate if you plug in and play with another network device,
>> such as a cell card, a USB dongle, wireless dongle,
>> bluetooth dongle to use your cell phone, etc etc
>>      
>    
>> You can also play tricks with network based applications like ntpd, and tell Network Manager only to run ntpd if eth0 is up and active.
>>      
>
>
>    
>> Lots of options with NM in control,
>> but on a fixed IP stationary workstation or server,
>>   it is still best to continue to use just the old network scripts and turn NM off.
>>      
> -----------------------------
> $ uname -r
> 2.6.32.11-99.fc12.i686.PA
> My box is a wired wkstation, no wless.
> I understand how to use old network scripts and turn NM off.
> So, I could do that,
> but I am trying to to learn how to actually implement
> using a static ip for eth0 using NM.
> In my f12, I tried to use a copy of my f10 static ip ifcfg-eth0(my f10
> used network, not NM)
> but with NM_CONTROLLED=yes,
> and just as Phil described, ifconfig then shows eth0 with my static 192.168.2.8
> in place of the dhcp f12 had been using, 192.168.2.100
> -looked good!
>
> -But I had lost internet connection, unable to even ping google.com.
>
> -And I had a lot of trouble getting back to my orig NM dhcp.
> ...
>    


When using static NM_MANAGED ifcfg-ethX definition files, you do need to 
have complete entries in there, including DNS.

You can set:
  DNS1=
  DNS2=
  DOMAIN=

etc

in the ifcfg file, and NM will then generate a proper resolv.conf for you.

Good Luck!


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux