Command-line for giving default gateway and dns.

Now my Wifi networks works (almost) fine. Unfortunately I have no gateway and no DNS configured. You know why ? Because my device is configured with command line syntax (like ifconfig wlan0 your_ipaddr).

Linux Networking 361 This topic was started by ,


data/avatar/default/avatar32.webp

18 Posts
Location -
Joined 2004-01-28
Now my Wifi networks works (almost) fine. Unfortunately I have no gateway and no DNS configured.
You know why ? Because my device is configured with command line syntax (like "ifconfig wlan0 your_ipaddr").
OK, now I know how to configure your_ipaddr, I know how to ping, to telnet to known address.
But how is the syntax for configuring DNS ?
And what about default gateway ? Is it "route add default 192.xx..yy" ?
Any help would be accepted.
Regards
Yordan

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar32.webp

18 Posts
Location -
Joined 2004-01-28
OP
I found how to do it. I used drakconf in order to configure another board, and the provided DNS and gateway are also valid for the Wifi adapter!