Re: Lost all network connectivity after clean FC3 install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jay!

Thanks to your help I am making progress on my
networking problems.

1. Now I have internet connectivity by adding the GW
to the eth0-DHCP configuration.

2. Now I also can bring up the LAN side on eth1 by
removing the GW from the settings and using
192.168.0.1 ip address and 255.255.255.0 mask.

3. I have a Fedora PC connected to eth1 using a
crossover cable. Before I had internet connectivity
with the following settings on the client PC (adjusted
for new network schema):

IP: 192.168.0.50
Mask: 255.255.255.0
GW: 192.168.0.1 (= eth1 on PC connected to cable
modem)

DNS: same entries as on PC connected to cable modem.

Then I adjust /proc/sys/net/ipv4/ip_forward and also
modify /etc/sysctl.conf so that I do not have to echo
to proc after each reboot.

Then I type (as root) on the PC connected to the cable
modem:

iptables --table nat --append POSTROUTING
--out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j
ACCEPT

So, when I still was at FC1 it worked like a charm. 
Now as FC3 the following happens at the client PC
(192.168.0.50):

1. ping 192.168.0.1, OK works!
2. ping the IP number of either of the DNS servers, OK
works!
3. ping the charter.net GW, OK works!
4. ping a non-IP, thus requiring DNS name resolution
e.g. ping www.cnn.com, the I get:

www.cnn.com unknown host.  So for some reason I do not
get DNS to resolve host names even though everything
else now works. 

/etc/resolv.conf is the same now on 192.168.0.1 and
192.168.0.2

netstat -rn on 192.168.0.1:

Destination     Gateway         Genmask         Flags 
 MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     
   0 0          0 eth1
68.187.12.0     0.0.0.0         255.255.252.0   U     
   0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     
   0 0          0 eth1
0.0.0.0         68.187.12.1     0.0.0.0         UG    
   0 0          0 eth0

iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Any suggestion?
Thanks in advance.

Enrico

 --- Jay Scherrer <jay@xxxxxxxxxxxx> ha scritto: 
> Enrico,
> 
> In your /etc/hosts file have record for localhost?
> looking at your route, I don't see it listed.
> How did you configure the dev's? Did you use the GUI
> version? 
> redhat-config-network?
> Or could you use: # ifconfig eth0
> To get the Lan address of eth0
> Then run 
> # ifconfig eth1  (LAN address different from eth0)
> 
> But still check to 127.0.0.0  is set to a local
> address. 
> Aren't multiple eth's fun?
> 
> Here's mine,
> Although only one eth0 listed:
> [jay@gimpit jay]$ /sbin/route
> Kernel IP routing table
> Destination     Gateway         Genmask        
> Flags Metric Ref    
> Use Iface
> 192.168.1.0     *               255.255.255.0   U   
>  0      0        
> 0 eth0
> 169.254.0.0     *               255.255.0.0     U   
>  0      0        
> 0 eth0
> 127.0.0.0       *               255.0.0.0       U   
>  0      0        
> 0 lo
> default         linksys         0.0.0.0         UG  
>  0      0        
> 0 eth0
> 
> Here is my /etc/hosts file:
> [jay@gimpit jay]$ cat /etc/hosts
> # Do not remove the following line, or various
> programs
> # that require network functionality will fail.
> 127.0.0.1       gimpit  localhost.localdomain  
> localhost
> 192.168.1.1     linksys



		
___________________________________ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica? Scaricalo ora! 
http://it.messenger.yahoo.it


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux