[slackware] dhclient overschrijft default gateway

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • Brahiewahiewa
  • Registratie: Oktober 2001
  • Laatst online: 30-09-2022
Mijn (windows) DHCP-server deelt - behalve de normale waardes - ook een classless static route (option 121) uit. Op Debian gaat dat goed, maar onder slackware overschrijft die static route de default gateway:
root@pro4600:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.10.0      t112            255.255.255.0   UG    202    0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
172.16.172.0    *               255.255.255.0   U     202    0        0 eth0
Kan wel handmatig de default gateway toevoegen:
root@pro4600:~# route add default gw vigor2130
root@pro4600:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         vigor2130       0.0.0.0         UG    0      0        0 eth0
10.10.10.0      t112            255.255.255.0   UG    202    0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
172.16.172.0    *               255.255.255.0   U     202    0        0 eth0
Maar iets zegt me dat dit ook automagisch goed zou kunnen gaan.
Wat doe ik verkeerd?

QnJhaGlld2FoaWV3YQ==


Acties:
  • 0 Henk 'm!

  • Hero of Time
  • Registratie: Oktober 2004
  • Nu online

Hero of Time

Moderator LNX

There is only one Legend

Heb je de configuratie van de dhcp client vergeleken tussen Debian en Slackware? Wellicht dat je daar je antwoord in vind. Hebben Google en het Slackware forum nog wat zinnigs te melden?

Commandline FTW | Tweakt met mate


Acties:
  • 0 Henk 'm!

  • Brahiewahiewa
  • Registratie: Oktober 2001
  • Laatst online: 30-09-2022
OK, opgelost. De meeste distro's hebben dhclient als dhcp client; die is wat relaxter met RFC's.
Slackware heeft dhcpcd als dhcp client; die is strikt. RFC3442 zegt namelijk:
If the DHCP server returns both a Classless Static Routes option and a Router option,
the DHCP client MUST ignore the Router option.
Oplossing: in de dhcp-server bij optie #121 ook 0/0 <default-gw> als classless static route opgeven.

QnJhaGlld2FoaWV3YQ==


Acties:
  • 0 Henk 'm!

  • H!GHGuY
  • Registratie: December 2002
  • Niet online

H!GHGuY

Try and take over the world...

Er bestaat ook een "nooption" config optie:
http://www.daemon-systems.org/man/dhcpcd.conf.5.html

ASSUME makes an ASS out of U and ME


Acties:
  • 0 Henk 'm!

  • Brahiewahiewa
  • Registratie: Oktober 2001
  • Laatst online: 30-09-2022
Ja, maar ik heb die static route wel nodig; daar staat m'n mail server

QnJhaGlld2FoaWV3YQ==