Introduction

This project will improve NetworkManager integration with Gentoo. NetworkManager is a very popular tool making network configuration much easier which is used in many popular Linux distributions. However, it can’t deal with Gentoo network configuration files which makes it quite useless out of the box. This project will make it work properly in Gentoo.

Supported Features

Currently, this project will focus mainly on reading configurations. This will involve /etc/conf.d/net, /etc/hostname and /etc/wpa_supplicant/wpa_supplicant.conf.

  • Wired Network and Wireless Network

    1. DHCP network configuration
    2. Static network configuration    
    3. DNS servers configuration    
    4. DNS search configuration    
    5. Routes configuration    
    6. Wireless adhoc network (!)  
    
  • Wireless Network Security

    1. LEAP (!)
    2. WEP  
    3. WPA/WPA2 Personal    
    4. WPA/WPA2 Enterprise (TTLS and PEAP have been tested)  
    
  • PPPoE Network

  • IPv4 and IPv6 Configuration (IPv6 requires a little configuration, see Configuration )

  • Monitoring

    Changes made to /etc/conf.d/net, /etc/conf.d/hostname, /etc/wpa_supplicant/wpa_supplicant.conf will be monitored and reported to NetworkManager. That means your changes to configuration file will immediately change your network settings without restarting anything! :–)

  • Saving connection configurations
    All the connection settings will be written into /etc/conf.d/net, /etc/wpa_supplicant/wpa_supplicant.conf. You could see a preview at NetworkManager plug-in with writing support preview

! means the feature has not been tested yet.
X means the feature hasn’t been implemented yet.

Requirement

Your NetworkManager should be version 0.8 or above.

Install

  1. You have to unmask NetworkManager0.8. The following should be added to package.keywords:

    net-misc/networkmanager ~amd64
    gnome-extra/nm-applet ~amd64 #for KDE is kde-misc/knetworkmanager
    net-misc/mobile-broadband-provider-info ~amd64
    sys-auth/polkit ~amd64
    net-misc/modemmanager ~amd64
    dev-util/gtk-doc-am ~amd64
    dev-util/gtk-doc ~amd64
    dev-libs/eggdbus ~amd64
    sys-auth/consolekit ~amd64
    gnome-extra/polkit-gnome ~amd64
    net-misc/networkmanager-pptp ~amd64 # required if you use it
    net-misc/networkmanager-vpnc ~amd64 # required if you use it
    net-misc/networkmanager-openvpn ~amd64 # required if you use it

  2. Thanks to Robert Piasek. He has added this project to layman. You could

    layman -a dagger

    and emerge. Notice that it’s called networkmanager-0.8-r100.

Configuration

Edit /etc/NetworkManager/nm-system-settings.conf and make it looks like:

[main]
plugins=ifnet,keyfile

[ifnet]
managed=true
auto_refresh=false

Then you can start your NetworkManager and enjoy :–)
There is some interesting options that may help you. See Configuration.

Screenshots

Wired Connection

Wireless Connection

Connection Information

Acknowledgments

Robert Piasek

Nirbheek Chauhan

Arun Raghavan

Dan Williams