Re: how to debug NetworkManager ?

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

 



cornel panceac <cpanceac <at> gmail.com> writes:

> 
> 
> 2010/10/13 cornel panceac <cpanceac <at> gmail.com>
> 
> Run dhclient eth0 (which you said sets routes correctly up).
> After that you can give me a display of:
> dhclient.leases file (figure out exact file name in /var/lib/dhclient/ dir)
> # cat /var/lib/dhclient/<dhclient.leases>
> and# route -n
> # cat /etc/resolv.conf
> # cat /etc/hosts
> 
> 
> 
> 
> 
> all in one file, after dhclient eth0Â
> 
> 
> 
> ïlease {
>   interface "eth0";
>   fixed-address 192.168.1.65;
>   option subnet-mask 255.255.255.0;
>   option dhcp-lease-time 86400;
>   option dhcp-message-type 5;
>   option dhcp-server-identifier 192.168.1.254;
>   option domain-name-servers 192.168.1.254;
>   option classless-static-routes 0 192.168.1.254;
>   option domain-name "lan";
>   renew 3 2010/10/13 14:19:31;
>   rebind 4 2010/10/14 02:11:13;
>   expire 4 2010/10/14 05:11:13;
> }
> lease {
>   interface "eth0";
>   fixed-address 192.168.1.65;
>   option subnet-mask 255.255.255.0;
>   option dhcp-lease-time 86400;
>   option dhcp-message-type 5;
>   option domain-name-servers 192.168.1.254;
>   option dhcp-server-identifier 192.168.1.254;
>   option classless-static-routes 0 192.168.1.254;
>   option domain-name "lan";
>   renew 3 2010/10/13 19:26:00;
>   rebind 4 2010/10/14 04:49:47;
>   expire 4 2010/10/14 07:49:47;
> }
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> 0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 eth0
> 
> ; generated by /sbin/dhclient-script
> search lan
> nameserver 192.168.1.254
> 
> 127.0.0.1	czgl-iteh-001	localhost.localdomain	localhost
> ::1	czgl-iteh-001	localhost6.localdomain6	localhost6
> 
> 

Thanks.
>   option classless-static-routes 0 192.168.1.254;

Dhcp server configuration:
$ man 5 dhcp-options
...
       option classless-static-routes destination-descriptor ip-address
                         [, destination-descriptor ip-address...];

         This option (see RFC3442) specifies a list of classless static routes
         that the client should install in its routing cache.

         This option can contain one or more static routes, each of which conâ
         sists  of  a  destination descriptor and the IP address of the router
         that should be used to reach that destination.

         Many clients may not implement the Classless  Static  Routes  option.
         DHCP  server  administrators  should  therefore  configure their DHCP
         servers to send both a Router option and a  Classless  Static  Routes
         option,  and  should specify the default router(s) both in the Router
         option and in the Classless Static Routes option.

         If the DHCP server returns both a Classless Static Routes option  and
         a Router option, the DHCP client ignores the Router option.
...

       option routers ip-address [, ip-address...  ];

         The  routers  option  specifies a list of IP addresses for routers on
         the client's subnet.  Routers should be listed in  order  of  preferâ
         ence.

$ man 5 dhcpd.conf
...
EXAMPLES
       A typical dhcpd.conf file will look something like this:
...
       The  most obvious reason for having subnet-specific parameters as shown
       in Figure 1 is that each subnet, of necessity, has its own router.   So
       for the first subnet, for example, there should be something like:

            option routers 204.254.239.1;
...

As an example, this is my NM lease file:
# cat /var/lib/dhclient/dhclient-5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03-eth0.
lease
...
lease {
  interface "eth0";
  fixed-address xx.yyy.zz.75;
  option subnet-mask 255.255.255.224;
  option routers xx.yyy.zz.65;         <<===========                          
  option dhcp-lease-time 86400;
  option dhcp-message-type 5;
  option domain-name-servers 127.0.0.1,xx.yyy.zz.1,xx.yyy.zz.2;
  option dhcp-server-identifier xx.yyy.zz.65;
  option broadcast-address xx.yyy.zz.95;
  option domain-name "somedomain.com";
  renew 3 2010/10/13 16:56:56;
  rebind 4 2010/10/14 02:29:30;
  expire 4 2010/10/14 05:29:30;
}

JB


-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux