Command-line for giving default gateway and dns.

This is a discussion about Command-line for giving default gateway and dns. in the Linux Networking category; 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 , . Last reply 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 in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Feb 3
Created
Feb 26
Last Response
0
Likes
1 minute
Read Time
User
Users

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!