Can't connect to the internet in linux..

x0lution

Member
Oct 31, 1999
175
0
0
Alright, I've got a problem, I can't connect to the internet in linux. I used to be able to, but I decided to install FreeBSD,so I repartitioned. I reinstalled Linux today (Debian, 2.2r3). The only things I've installed are X 4.1.0 and kernel 2.4.9 (and I do have support for my NIC compiled into the kernel). The command I've used to connect is this- "ifconfig eth0 up 152.30.103.211 netmask 255.255.240.0; route add default gw 152.30.100.1" /etc/resolv.conf contains "nameserver 152.30.2.120". Well, if anyone can help, please respond (or if you need more information, respond). Thanks for your time and any information that you can provide.
 

lowtech1

Diamond Member
Mar 9, 2000
4,644
1
0
I'm not familiar with FreeBSD but under Debian you can use ifconfig command or Network file under Init.d folder (etc/init.d/network)
to modified your IPaddress.

IPADDR=xxx.xxx.xxx.xxx

NETMASK=xxx.xxx.xxx.xxx

GATEWAY=xxx.xxx.xxx.xxx

ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} route add -net ${NETWORK} [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1

Debian Network config