Hot answers tagged

32

On systemd network configuration dependencies It is very easy to affect systemd's unit ordering. On the other hand you need to be careful about what a completed unit guarantees. Configure your service On current systems, ordering after network.target just guarantees that the network service has been started, not that there's some actual configuration. You ...


11

Wicd is a very good Wi-Fi manager. It uses the traditional tools for network management without extra layers. It meets your requirements. Remember to stop and uninstall all NetworkManager packages for avoid conflicts.


10

Under Linux, you can use the iw* series of commands to configure and display information about wireless networks: iwconfig - configure a wireless network interface iwlist - Get more detailed wireless information from a wireless interface iwpriv - configure optionals (private) parameters of a wireless network interface iw - show / manipulate wireless ...


10

Upstream added a separate service for the dispatcher. Try running: systemctl enable NetworkManager-dispatcher.service then systemctl start NetworkManager-dispatcher.service Since dbus-org.freedesktop.nm-dispatcher.service is an alias, it should be working: systemctl status dbus-org.freedesktop.nm-dispatcher.service NetworkManager-dispatcher.service - ...


10

The best way to guarantee the same IP at all times for a given host is to set up a MAC Address IP reservation in the DHCP server. Get the MAC address if your laptop, then go to your DHCP server, and assign a specific IP address to be issued to a host requesting from that MAC address.


10

The dhclient that NetworkManager calls should be the same irregardless. On my Fedora 19 system I'm getting the following command run via NetworkManager when I allow it to connect: /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-client.action \ -pf /var/run/dhclient-wlp3s0.pid \ -lf /var/lib/NetworkManager/dhclient-5117671a-6bc3-...


9

NetworkManager has the functionality to manage a local dnsmasq server built in. It is not necessary to use resolvconf/openresolv to do this. To enable this: Disable the resolvconf/openresolv dnsmasq configuration if it was previously enabled, and ensure there are no instances of dnsmasq running. Ensure dnsmasq is installed Add dns=dnsmasq to /etc/...


7

Mostly to make configuration "just work" smoothly when one has a diversity of connection methods (many different Wi-Fi networks, Ethernet, 3G, Bluetooth etc...). Configuring some of those by hand can be a hassle, specially when you only need them temporarily (e.g. on a laptop). Of course, one can fall back to the older config and do it by hand or use, e.g....


7

Files in /etc/network/if-up.d already run automatically whenever an interface (any interface) comes up. When you specify the same script to run again in an explicit post-up command, you only cause the script to run again. So my guess is this is what should happen: It runs once when lo comes up (with environment variable IFACE=lo) due to being located in /...


6

If you are using NetworkManager (which, I believe Xubuntu does), it should be in /etc/NetworkManager/nm-system-settings.conf. There is more information about it here: http://live.gnome.org/NetworkManager/SystemSettings.


6

sudo iwlist wlan0 scan Assuming your wireless is wlan0, of course. If you're not sure, iwconfig should tell you.


6

Uses the same antenna. Currently most software doesn't allow to be in client and AP mode at the same time. Wireless is a half-duplex protocol, except for some really new bleeding edge stuff. The radio can only transmit or receive at one time, it cannot do both at the same time. Going with point 3, if any software was developed to allow both client and AP ...


5

Since version 0.8.1, Network Manager comes with a command line tool, nmcli. Its capabilities in older versions are very limited; for the most part, you can use it to view available connections and switch between them but not configure new ones. Since version 0.9.6, nmcli can create new connections. There are other, third-party command-line interfaces to ...


5

NetworkManager has its own place for hooks in /etc/NetworkManager/dispatcher.d/. Scripts in there get called whenever an interface changes state, see the NetworkManager manpage for all gory details.


5

Have a look at: $ man NetworkManager.conf It seems that if you add a line with dns=none in the [main] section, NetworkManager won't touch /etc/resolv.conf.


5

Method 1# Find NetworkManager configuration file and add/modify following entry in CentOS5 it is in /etc/NetworkManager/nm-system-settings.conf Or /etc/NetworkManager/system-connections/ and edit your DSL connection file : [ipv4] method=auto dns=8.8.8.8;4.2.2.2; ignore-auto-dns=true Note:- if [ipv4] not work then try with [ppp] Method 2# You can Change ...


5

You can use After in [Unit] section to define a service that should be started before your service starts. For example if you are using NetworkManager, you can make your service start after NetworkManager is started. [Unit] Description=test service After=NetworkManager.service


5

Take a look at the output from this command to confirm what drivers/modules the kernel is using for your given hardware. $ lshw -C network ... *-network description: Wireless interface product: Centrino Wireless-N 1000 [Condor Peak] vendor: Intel Corporation physical id: 0 bus info: pci@0000:03:00.0 logical name: ...


5

Ethernet cards might have (supposedly) unique MAC addresses, but what about virtual interfaces like aliases (e.g. eth0:0), bridges or VPNs? They need an ID too, so an UUID would be a good fit. By the way, since the question is about NetworkManager and NetworkManager deals with connections, there are scenarios where you can have multiple connections for a ...


4

This is a known issue and several bug reports have been submitted. There is also a workaround for ubuntu, but I don't think it will work for Arch users because they no longer use init scripts. I bet their fix can be ported but I don't know enough about systemd to do it. Here is a solution from the Fedora forums that looks like it works: Right-click on ...


4

One method for configuring multiple NIC cards is through the use of what's called bonding. It goes by other names as well: Bonding Channel Bonding Link Aggregation Using NetworkManager What version of NetworkManager are you using? Version 0.9.8 is the first that purports to offer support for network bonding. excerpt from phoronix.com Add a "...


4

Yes. You could choose the public city wifi setting from networkmanager and disable automatic connection: Manage Connections -> Wireless -> Choose Access Point(City's Wifi in this case) -> Uncheck "Connect Automatically"


4

You should be able to add a hidden network like so using NetworkManager. Step #1 - open NetworkManager's main menu                                          &...


4

I'm guessing I could alter the point at which the script runs by messing with the WantedBy parameter That will have the opposite effect of what you want. From man systemd.unit: WantedBy=, RequiredBy= [...] A symbolic link is created in the .wants/ or .requires/ directory of each of the listed units when this unit is installed by ...


4

Recent versions of the network-manager package on Ubuntu should provide the nmcli utility - which should enable you to do what you want from the command line. I'm not sure exactly the equivalent to the GUI settings you are describing, but probably nmcli nm wifi on If you need to re-enable networking as a whole (rather than just the wifi component), then ...


4

This depends on the distribution. On Ubuntu, the name is not upper case: $ dpkg -l|grep -i network-manager ii network-manager 0.9.8.8-0ubuntu7 The package name is written in upper case in Fedora (and thus Red Hat, CentOS, etc.), though. This is due to the fact that the Fedora Naming Guidelines simply allow upper case package names. There are other ...


4

From Red Hat Magazine: Introducing NetworkManager : Words with the creator NetworkManager creator and developer Dan Williams took time out of his hectically busy schedule to answer some questions. What's with those StudlyCaps, anyway? Well, coming from a Classic Mac OS background, in which everything was StudlyCaps, it is quite natural for ...


4

You're probably mixing the classic /etc/init.d/network (which gets translated to network.service) with NetworkManager.service. While those are expected to partially coexist, it's much better to choose just one of them and stop and disable the other. Either way, it's better not to write /etc/resolv.conf directly but instead properly configure /etc/sysconfig/...


4

The question has little sense. "To start during boot" means precisely "to start as dependency of the default target". Note that systemd starts everything in parallel, so the 1.5-second NetworkManager startup does not delay anything except services which explicitly wait for network (apparently, you have none; otherwise they would have been shown in the graph)...


4

The best way to do this is with avahi which implements multicast-dns (this is what Apple calls Bonjour). I would disable Network Manager and go with configuring networking in /etc/network/interfaces. The interfaces file supports the ipv4ll method, which uses avahi-autoipd to configure an interface with an IPv4 Link-Layer address (169.254.0.0/16 family). ...



Only top voted, non community-wiki answers of a minimum length are eligible