Re: configuration of network adaptor
On 22/12/2000 at 03:28 +0100, Andreas Fromm wrote:
> Hi,
>
> I just want to ask how to configure a network adaptor on a running
> system (potato). I recompiled the kernel with the coresponding module
> for the adaptor, installed it with modconf (installation succeeded) and
> set it up with ifconf. I can ping to the IP asigned to the NIC, but
> can't ping another system. I also tried a "route add xxx.xxx.xxx.xxx".
>
Don't do all that mannually. In fact, nothing of that will be active after
the next reboot (ifconfig, route)... The modconf part is OK.
Instead, edit /etc/network/interfaces and add the following:
---(starts here)---
auto <iface>
iface <iface> inet <type>
address <ipadd>
netmask <netmask>
gateway <gw>
---(ends here)---
...where <iface> is you interface name (e.g. eth0), <type> is the interface
type (static or dhcp -- if dhcp, don't add the address, netmask or gateway,
if not using DHCP, use static), <address> is the IP address of the interface
(e.g. 192.168.0.1), <netmask> is it's netmask (e.g. 255.255.255.0) and
<gateway> it's the gateway (duh..).
Then, do "/etc/init.d/networking restart" and enjoy...
Regards, sena...
--
sena@decoy.ath.cx, http://decoy.ath.cx/~sena/
gpg fingerprint: F20B 12A8 A8F6 FD1F 9B1D BA62 C424 8E73 DD2E 47C8
Reply to: