Oui j'essaye de jouer avec depuis tout a l'heure.
le client DHCP choppe bien le DNS mais ne l'intègre apparement pas au TC :
{Administrator}=>:dhcp client iflist expand enabled
DHCP Client Info :
Interface : ethip4
DHCP Client State : [BOUND]
HW address : e0:b9:e5:20:3f:dc
Client ID :
User Class ID :
Vendor Class ID :
Route metric : 2
DNS metric : 1
Mode : broadcast
DHCP server route : enabled
Accept DHCP force renew : disabled
Lease history : enabled
Update local DNS settings : disabled
Link state : up
IP Address : 192.168.222.183
Netmask : 255.255.255.0
Default Gateway : 192.168.222.1
DNS Server 1 : 192.168.222.1
DHCP Server : 192.168.222.2
DHCP Options :
Transmitted : 50
Requested : 3
6
Received : 3
6
Lease renews : 0 days, 0:45:24
Lease rebinds : 0 days, 1:25:37
Lease expires : 0 days, 1:39:02
Dans le dns server forward list, il y a bien un "owner DHCP" mais je
n'arrive pas a l'utiliser sans mettre l'ip d'un DNS... logique !
{Administrator}=>:dns server forward dnsset add owner DHCP intf ethip4 set 1
set := 1
dns =
Required parameter (use ctrl-c or ctrl-g to abort)
dns = inherit
invalid ip address specified [inherit]
dns =
Le mar. 4 sept. 2018 à 11:34, David Ponzone <[email protected]> a
écrit :
> Hmmm
> Essaie voir:
> :dns server forward list
>
>
> Le 4 sept. 2018 à 11:09, BASSAGET Cédric <[email protected]> a
> écrit :
>
> oui
> option 6 = domain-name-servers
>
> {Administrator}=>dhcp client rqoptions list
> Interface : ethip4
>
> DHCP Options : 3
> 6
>
>
> {Administrator}=>dhcp client ifattach intf ethip4
> {Administrator}=><37> Jan 1 01:30:00 FIREWALL event (1 of 2): created
> rules
> <148> Jan 1 01:30:02 DHCC IP address 192.168.222.183 (255.255.255.0) set
> on intf ethip4: ok.
> <148> Jan 1 01:30:02 DHCC lease ip-address 192.168.222.183 bound to intf
> ethip4
> <143> Jan 1 01:30:02 GRP Default destination is routed via gateway
> 192.168.222.1
>
> {Administrator}=>:dns client dnslist
> No DNS servers registered.
>
> snif...
>
> Le mar. 4 sept. 2018 à 10:56, David Ponzone <[email protected]> a
> écrit :
>
>> T’as bien ajouté:
>> option=domain-name-servers
>> aussi ? :)
>>
>> Je dis ça, je dis rien….
>>
>> Le 4 sept. 2018 à 10:47, Cédric Bassaget <[email protected]> a
>> écrit :
>>
>> Maintenant j'ai un problème avec le client DHCP qui ne récupère pas les
>> DNS... malgré les options 6 et 15
>>
>> Le mar. 4 sept. 2018 à 10:35, Cédric Bassaget <[email protected]>
>> a écrit :
>>
>>> oula si j'ai cherché au moins 2 heures !
>>>
>>> Le mar. 4 sept. 2018 à 10:25, David Ponzone <[email protected]> a
>>> écrit :
>>>
>>>> J’étais en train de chercher parce que je me doutais qu’il fallait une
>>>> option :)
>>>> Un gage pour Cédric, qui n’a pas cherché avant de poster :)
>>>>
>>>>
>>>>
>>>> > Le 4 sept. 2018 à 10:22, BASSAGET Cédric <
>>>> [email protected]> a écrit :
>>>> >
>>>> > Allez je me réponds à moi même, j'ai enfin trouvé :
>>>> > :dhcp client rqoptions add intf=ethip4 option=default-routers
>>>> > index=1
>>>> >
>>>> > Le mar. 4 sept. 2018 à 10:12, Cédric Bassaget <
>>>> [email protected]> a
>>>> > écrit :
>>>> >
>>>> >> Salut,
>>>> >> Petite question TC à laquelle quelqu'un aura peut être une réponse...
>>>> >> J'essaye de passer une interface sur un TG588 en client DHCP, mais
>>>> >> impossible de lui faire prendre sa route par défaut.
>>>> >>
>>>> >> Après un factory reset :
>>>> >>
>>>> >> {Administrator}=>eth bridge ifdetach intf ethport4
>>>> >> {Administrator}=>eth bridge ifdelete intf ethport4
>>>> >> {Administrator}=>eth ifadd intf ethport4
>>>> >> {Administrator}=>eth ifconfig intf ethport4 dest ethif4
>>>> >> {Administrator}=>eth ifattach intf ethport4
>>>> >>
>>>> >> {Administrator}=>ip ifadd intf ethip4 dest ethport4
>>>> >> {Administrator}=>ip ifattach intf ethip4
>>>> >>
>>>> >> {Administrator}=>dhcp client ifadd intf ethip4
>>>> >> {Administrator}=>dhcp client ifattach intf ethip4 metric 2 dnsmetric
>>>> 2
>>>> >>
>>>> >> a partir de là j'ai bien une IP récupérée en DHCP sur mon eth4, par
>>>> contre
>>>> >> pas de route par défaut dans mon ip rtlist. le debug du TC ne
>>>> m'apprend pas
>>>> >> grand chose
>>>> >>
>>>> >> un ":system config defaultconnection ethip4" n'améliore pas la chose.
>>>> >>
>>>> >> Si quelqu'un a un piste je suis preneur. J'ai pas trouvé grand chose
>>>> dans
>>>> >> les docs et j'ai pas encore fait mon mail désespéré au "support".
>>>> >>
>>>> >> Cédric
>>>> >>
>>>> >> ---------------------------
>>>> >> Liste de diffusion du FRnOG
>>>> >> http://www.frnog.org/
>>>> >>
>>>> >
>>>> > ---------------------------
>>>> > Liste de diffusion du FRnOG
>>>> > http://www.frnog.org/
>>>>
>>>>
>>>> ---------------------------
>>>> Liste de diffusion du FRnOG
>>>> http://www.frnog.org/
>>>>
>>>
>>
>
---------------------------
Liste de diffusion du FRnOG
http://www.frnog.org/