eth0 in slackware
I'm trying to configure my network to acess the internet. I used netconfig and can acess other machiens on my network, but not the internet. I think the gateway isn't set.
I type route:
Destination | Gateway
1) What is the destination? (What is it for?)
2) How do I put in a gateway?
I tried 'route add default 192.168.1.1 dev eth0'
try running 'netconfig' as root, and after that 'ifconfig'
to check if it's up.
Ok, it works now!
route add -net 0/0 gw 192.168.1.1 netmask 255.255.255.0
but now i have a bunch of entries i don't want
1) How do I delete the other entries?
2) Why didn't netconfig do this for me? It asked for my gateway and netmask.....?
Ok actually that didn't work, but the entry that works is the one with 0.0.0.0 for the netmask...go figure.
Now, how do I delete entries?
netconfig should have asked you for the details of your gateway that should be all thats needed so long as the gateway is setup with NAT/IP-Masq to allow you out onto the web.
Post the output of ifconfig, route -n and tell us what the IP address of your gateway is.
edit the file /etc/rc.d/rc.inet1
Thats where all your entries IP related go
edit /etc/resolv.conf thats where your dns and search paths are
edit /etc/hosts this is your hosts file where it names your pc
|All times are GMT -5. The time now is 12:00 PM.|