Home / Networking

Networking

How to fix network service discovery disabled

It looks like avahi-daemon is started when the network connection is established (

/etc/network/if-up.d/avahi-daemon

). This notification is informing you that mDNS (Avahi) has been disabled. It’s only used for a small number of applications that only work on the local network, it won’t adversely affect your internet connection or DNS.

The most well known use for mDNS is sharing music with Rhythmbox (or iTunes) over your LAN. It’s an Apple technology, but it’s largely been ignored in favour of uPNP or DLNA.

To disable it, you must edit the file /etc/default/avahi-daemon as root:

sudo -i
gedit /etc/default/avahi-daemon

and add this line (or change it if already exists to):

AVAHI_DAEMON_DETECT_LOCAL=0

Better one:

In /etc/avahi/avahi-daemon.conf uncomment and change the line with domain name to

domain-name=.alocal

sudo gedit /etc/NetworkManager/NetworkManager.conf
sudo service network-manager restart

Broadband connection set up in Ubuntu

If you’have installed Ubuntu 14.04 LTS alongside Windows Xp or Windows 7. Your broadband connection working ok in Windows Xp or 7, but sometimes it is not working in Ubuntu. Let’s go how can you solve this problem, Open your terminal and type ifconfig you’ll see all configuration in your network.

Rasel Khan:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr e0:69:95:12:b0:4c  
          inet addr:10.0.1.86  Bcast:10.0.1.86  Mask:255.255.255.255
          inet6 addr: fec0::b:751e:ae5e:9810:845d/64 Scope:Site
          inet6 addr: fe80::e269:95ff:fe12:b04c/64 Scope:Link
          inet6 addr: 2002:2d74:f8a1:b:e269:95ff:fe12:b04c/64 Scope:Global
          inet6 addr: 2002:2d74:f8a1:b:751e:ae5e:9810:845d/64 Scope:Global
          inet6 addr: fec0::b:e269:95ff:fe12:b04c/64 Scope:Site
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36202 errors:0 dropped:1 overruns:0 frame:0
          TX packets:14115 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10454044 (10.4 MB)  TX bytes:2518480 (2.5 MB)
          Interrupt:20 Memory:fe400000-fe420000 

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:65536  Metric:1
          RX packets:2182 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:115203 (115.2 KB)  TX bytes:115203 (115.2 KB)

Step-1: Open network connections by searching for it in the dash.

Now Click on the Add button.

Step-2: Choose the network type as DSL and then click create.

Step-3: Now type the username and password and save.

You can also choose to connect automatically in the general tab.

If still not working ๐Ÿ™ , let’s go another way …

Step-1: Open your terminal simply type command sudo pppoeconf you’ll build step by step your network configuration !

Rasel Khan:~ sudo pppoeconf
[sudo] password for khan: 

Step-2: After type your valid password for sudo user then you’ll show for “dsl-provider” configuration..then type “” !

 If you continue with this program, the configuration file          โ”‚     
     โ”‚ /etc/ppp/peers/dsl-provider will be modified. Please make sure     โ”‚     
     โ”‚ that you have a backup copy before saying Yes.                     โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ Continue with configuration?                                       โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                  <Yes>                     <No>        

Step-3: Change your network configuration settings via enter ““for configuration..

 Most people using popular dialup providers prefer the options      โ”‚     
     โ”‚ 'noauth' and 'defaultroute' in their configuration and remove the  โ”‚     
     โ”‚ 'nodetach' option. Should I check your configuration file and      โ”‚     
     โ”‚ change these settings where neccessary?                            โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                  <Yes>                     <No>     

Step-4: Enter your valid internet(Broadband) connection username (i.e my username “khancse” ) , then “” for continue.. ..

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค ENTER USERNAME โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚ Please enter the username which you usually need for the โ”‚          
          โ”‚ PPP login to your provider in the input box below. If    โ”‚          
          โ”‚ you wish to see the help screen, delete the username and โ”‚          
          โ”‚ press OK.                                                โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚ username___khancse_____________________________________________ โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                          <Ok> 

Step-5: Enter your valid internet(Broadband) connection password, then Ok for continue.. .. .

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค ENTER PASSWORD โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚ Please enter the password which you usually need for the โ”‚          
          โ”‚ PPP login to your provider in the input box below.       โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚ NOTE: you can see the password in plain text while       โ”‚          
          โ”‚ typing.                                                  โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚ password________________________________________________ โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                          <Ok>     

Step-6: If you’ve entered valid information for username and password, then you’ll got
useable servers when the connection is established . Enter “” for configuration..

 USE PEER DNS โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚                                                          โ”‚          
          โ”‚ You need at least one DNS IP address to resolve the      โ”‚          
          โ”‚ normal host names. Normally your provider sends you      โ”‚          
          โ”‚ addresses of useable servers when the connection is      โ”‚          
          โ”‚ established. Would you like to add these addresses       โ”‚          
          โ”‚ automatically to the list of nameservers in your local   โ”‚          
          โ”‚ /etc/resolv.conf file? (recommended)                     โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚               <Yes>                  <No>  

Step-7: Now need to byte allocation for pppoe clamp MSS, then “” for continue, (If you still get problems described above, try setting to number of byte in the dsl-provider file.)

LIMITED MSS PROBLEM โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     
     โ”‚                                                                    โ”‚     
     โ”‚ Many providers have routers that do not support TCP packets with a โ”‚     
     โ”‚ MSS higher than 1460. Usually, outgoing packets have this MSS when โ”‚     
     โ”‚ they go through one real Ethernet link with the default MTU size   โ”‚     
     โ”‚ (1500). Unfortunately, if you are forwarding packets from other    โ”‚     
     โ”‚ hosts (i.e. doing masquerading) the MSS may be increased depending โ”‚     
     โ”‚ on the packet size and the route to the client hosts, so your      โ”‚     
     โ”‚ client machines won't be able to connect to some sites. There is a โ”‚     
     โ”‚ solution: the maximum MSS can be limited by pppoe. You can find    โ”‚     
     โ”‚ more details about this issue in the pppoe documentation.          โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ Should pppoe clamp MSS at 1452 bytes?                              โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ If unsure, say yes.                                                โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ (If you still get problems described above, try setting to 1412 in โ”‚     
     โ”‚ the dsl-provider file.)                                            โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                  <Yes>                     <No>    

Step-8: Your PPPD is configured now, then “” for continue..

โ”ค DONE โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚                                                          โ”‚          
          โ”‚ Your PPPD is configured now. Would you like to start the โ”‚          
          โ”‚ connection at boot time?                                 โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚               <Yes>                  <No>                โ”‚          
          โ”‚                                              

Step-9: In this step ESTABLISH A CONNECTION with “dsl-provider”, then “” for continue…After complete all the steps you’ll got your connection !!

 ESTABLISH A CONNECTION โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚                                                          โ”‚          
          โ”‚ Now, you can make a DSL connection with "pon             โ”‚          
          โ”‚ dsl-provider" and terminate it with "poff". Would you    โ”‚          
          โ”‚ like to start the connection now?                        โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚               <Yes>                  <No>   

Check your “dsl-provider” file, you’ll show all configuration with your username, i’m using nano editor .

Rasel Khan:~ sudo nano /etc/ppp/peers/dsl-provider
[sudo] password for khan: 

# Minimalistic default options file for DSL/PPPoE connections

noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
#mtu 1492
#persist
#maxfail 0
#holdoff 20
plugin rp-pppoe.so eth0
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@user "khancse"
usepeerdns
user "khancse"

The network applet shows device not managed, but my internet connection works fine.
Enjoy ๐Ÿ™‚