|
||||||||
|
|
#1
|
|
I am setting up a small office network. Its only one of the worksation
on the network that could ping the linux server while the server can only ping one workstation (the one that can ping it), even I put all the workstations in the /etc/hosts file. Could this be because of the cable or Hub? Cos the response from the workstations (windows) is Request Time Out while on the server (Linux) it says, DestinationHost unreachable. Also, the Linux is a gateway (router) to an ISP (External Internet Connection), After configuring the (two)NICs, One for local and the other for External network. The local NIC config is ip addy: 10.0.0.1 network: 10.0.0.0 broadcast: 10.0.0.255 netmask: 255.255.255.0 The External NIC is: ip addy: 198.44.182.173 netmask: 255.255.255.224 The network addy is not given but I tried calculating it. It is thus: network: 198.44.182.160 broadcast: 198.44.182.192 The route table looks like this: Destination Gateway Netmask Flag Metric Ref Use IFace 198.44.182.160 * 255.255.255.224 U 0 0 0 eth0 10.0.0.0 * 255.255.255.0 U 0 0 0 eth1 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 127.0.0.1 * 255.0.0.0 U 0 0 0 lo default 198.44.182.161 0.0.0.0 UG 0 0 0 eth0 I don't understand where the 169.254.0.0 came from. I The /etc/resolv.conf looks like this search inetgateway.geoniger.lab nameserver 198.6.1.1 nameserver 198.44.182.140 I also made sure the file /proc/sys/net/ipv4/ip_forward is 1 However, I don't know the details of the NAT scripts. The /etc/hosts looks like: 127.0.0.1 inetgateway.geoniger.lab localhost 10.0.0.1 10.0.0.2 system1 10.0.0.3 system2 The problem is when I try pinging the ISP gateway server from the local server, there is no response, Just a waiting prompt - as if waiting for a command to finish execution. Why is this? Nakel lekkie.aydot@gmail.com |
|
#2
|
|||
|
|||
|
"(E-Mail Removed)" wrote:
Jusdt a fast comment: given your netmask *.224 and your nw address *.160, the broadcast address should be *.191, not *.192. > > The External NIC is: > > ip addy: 198.44.182.173 > netmask: 255.255.255.224 > The network addy is not given but I tried calculating it. It is thus: > > network: 198.44.182.160 > broadcast: 198.44.182.192 Uwe |
|
#3
|
|||
|
|||
|
(E-Mail Removed) wrote:
> I am setting up a small office network. Its only one of the worksation > on the network that could ping the linux server while the server can > only ping one workstation (the one that can ping it), even I put all > the workstations in the /etc/hosts file. Likely either the workstation is misconfigured. or it's hardware. Try swapping workstation cables, looking for green lights on hubs and NICs, etc. etc. > Could this be because of the cable or Hub? Cos the response from the > workstations (windows) is Request Time Out while on the server (Linux) > it says, DestinationHost unreachable. Likely your Linux box is getting no reply when it ARPs for the workstation. tcpdump -n -i eth1 would tell you. > Also, the Linux is a gateway (router) to an ISP (External Internet > Connection), After configuring the (two)NICs, One for local and the > other for External network. > > The local NIC config is > > ip addy: 10.0.0.1 > network: 10.0.0.0 > broadcast: 10.0.0.255 > netmask: 255.255.255.0 > > The External NIC is: > > ip addy: 198.44.182.173 > netmask: 255.255.255.224 > The network addy is not given but I tried calculating it. It is thus: > > network: 198.44.182.160 > broadcast: 198.44.182.192 191, but that's not your problem. Should be right if you do ifconfig -a > > The route table looks like this: > > Destination Gateway Netmask Flag Metric Ref Use IFace > 198.44.182.160 * 255.255.255.224 U 0 0 0 eth0 > 10.0.0.0 * 255.255.255.0 U 0 0 0 eth1 > 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 > 127.0.0.1 * 255.0.0.0 U 0 0 0 lo > default 198.44.182.161 0.0.0.0 UG 0 0 0 eth0 > > I don't understand where the 169.254.0.0 came from. Google for it. > > I The /etc/resolv.conf looks like this > search inetgateway.geoniger.lab If this is bogus (you don't have a nameserver for it) don't use it. > nameserver 198.6.1.1 > nameserver 198.44.182.140 > > I also made sure the file /proc/sys/net/ipv4/ip_forward is 1 You're nowhere near needing this yet. > > However, I don't know the details of the NAT scripts. > > The /etc/hosts looks like: > 127.0.0.1 inetgateway.geoniger.lab localhost > 10.0.0.1 127.0.0.1 localhost.localdomain localhost 10.0.0.1 inetgateway inetgateway.geoniger.lab Folks can argue about the order of these, whether localhost.localdomain is necessary (RH likes it) and whether the bogus domain is a Good Idea, but you should at least have a name here. > 10.0.0.2 system1 > 10.0.0.3 system2 > > The problem is when I try pinging the ISP gateway server from the local > server, there is no response, Just a waiting prompt - as if waiting for > a command to finish execution. > Why is this? For starters, use ping -n, which turns off DNS resolution. (Same thing if you wind up using tcpdump, by the way.) That way ping doesn't stall if the nameserver is misconfigured. I assume you are pinging 198.44.182.161 here. Try also pinging 10.0.0.2. |
|
#4
|
|||
|
|||
|
I don't understand the output of the tcpdumps.
|
![]() |
| Tags |
| gateway, response |
| Thread Tools | |
| Display Modes | |
|
|