PDA

View Full Version : system-config-network and setting up my network


grevlingen
1st July 2004, 03:57 PM
Hi!

I'm stuck helping a friend, so I have to turn to you for some help.
Helping someone (my friend) remote sure is a drag.

I configured a 2 working ethernet cards on his Debian-box first, eth0 as 193.168.1.101 and eth1 as 193.168.1.102. Then added "iptables -t nat -A POSTROUTING -o ppp0 -s 0.0.0.0/0 -j MASQUERADE"

Now I want to connect to the gateway with his laptop with Fedora Core 2 installed.

First I ran:

"ifconfig eth0 192.168.1.103 netmask 255.255.255.0 ; route add default gw 192.168.1.102"

Then I edited /etc/resolv.conf and added his ISP's DNS's

search .
nameserver 193.212.1.11
nameserver 193.212.1.10

And off we go. Both LAN and Internet is working perfectly on the Fedora laptop.

Then since my friend is a noob I wanted his laptop to do things for him automatically. And I found system-config-network to be a good tool for my friend to use. I walked him through the config and I'm pretty sure everything is sweet.
So save and exit.

Then comes the problems.

After a reboot of the laptop I can not ping 193.168.1.103 (the laptop), and I can not ping 193.168.1.102 or 193.168.1.101 (Debian-box) from the laptop. And thereby no access to the internet from the laptop.

And everything looks good in ifconfig.

I tried to run the old "ifconfig eth0 192.168.1.103 netmask 255.255.255.0 ; route add default gw 192.168.1.102" again, but this time the operation is not permitted. Then I tried them one by one., and ifconfig works fine. Though running "route add default gw 192.168.1.102" it tells me "the file exists".

Still no network up and running.

I need some hints on what to do and look for here, guys. It worked, after using system-config-network it doesn't.

Thank you!

grevlingen

superbnerd
1st July 2004, 04:52 PM
so what is laptop's ip now. are you using a static or dhcp ip address for the laptop? who is the dhcp server ( I assume the deb (which should be a fedora box) box)? did you set up dhcp (you didn't mention it)?

grevlingen
1st July 2004, 05:03 PM

The laptop still has 192.168.1.103. And yes I am using a static ip.

superbnerd
1st July 2004, 05:08 PM
is the network card activated (/sbin/ifup eth0) and setup to activate on bootup

grevlingen
1st July 2004, 05:14 PM
Hmm. I do not have access to my friends laptop now, as we are in two different places, and he has gone to sleep. But I remember boot said eth0 [OK]. But I will look into that as soon as possible.

Thanks.

superbnerd
1st July 2004, 05:19 PM
is the laptop wireless

grevlingen
1st July 2004, 05:29 PM
Yes, it has a wireless card as well. But now we are using a TP cable between the laptop and the desktop. I have not touched any wireless configuration.

grevlingen
2nd July 2004, 05:29 AM
I have now tried /sbin/ifup eth0 on the laptop - so the card is activated.

Running "route add default gw 192.168.1.102" still tells me "the file exists".

superbnerd
2nd July 2004, 08:06 AM
still no ping?

ghaefb
2nd July 2004, 08:24 AM
What about iptables? run: iptables -L
Maybe you should flush them (iptables -F)

grevlingen
2nd July 2004, 08:50 AM
Now my friend dropped by with his laptop, and we had no problems with the network or the shared internet. So now I have to have a look at his Debian box.

We run the same custom firewall, but I will have another look.

Thanks for you help. I will post a solution as soon as I got one.

grevlingen
5th July 2004, 12:12 PM
Well, Fedora was not the issue at all. Got rid of some dhcp **** and ran with NAT and static ip's, and everything worked perfectly.

My friend is happy now, running Fedora Core 2 on his laptop, sharing internet via his lan.

Thanks again.