locked me out from local net


 
Thread Tools Search this Thread
Special Forums IP Networking locked me out from local net
# 1  
Old 02-23-2012
locked me out from local net

Hello,

I have two hosts. One is connected to internet and the other host.
I've read about sharing the internet connection and now I can open websites from the 2nd host.

But now I can not 'ping' to any other host in local net except of the IP of the host with the internet connection.

I thought about dropping packages from this IP before routing but this target isn't available for 'nat' table.
I also don't know if this is the right way to do?

host1
eth0 : 192.168.5.10 / gw 192.168.5.251
eth1 : 192.168.10.10
---
host2
eth0 : 192.168.10.20

shorted question: How to connect to local net over host1 from host2 with IP-forwarding enabled?
# 2  
Old 02-24-2012
Let me just check I've understood what you're asking correctly.

You want host2 to be able to access resources on the 192.168.5.x subnet by using host1 as a router?
But you can already access the Internet from host2 by using host1 as a router?

Are you able to ping 192.168.5.10? Are you able to ping 192.168.5.251?

What OS are you using?
# 3  
Old 02-24-2012
Quote:
Originally Posted by spynappels
You want host2 to be able to access resources on the 192.168.5.x subnet by using host1 as a router?
But you can already access the Internet from host2 by using host1 as a router?
yes..

Quote:
Are you able to ping 192.168.5.10?
yes..
Quote:
Are you able to ping 192.168.5.251?
no, I just can ping the IP of eth0 on host1 (192.168.5.10)

ping from host1 to subnet 192.168.5.x works..

Quote:
What OS are you using?
dmesg | grep version tells me the following:

host1 : Linux version 2.6.32-33-server [...] Ubuntu 4.4.3-4ubuntu5
host2 : Linux version 3.0.0-16-generic [...] Ubuntu/Linaro 4.6.1-9ubuntu3
# 4  
Old 02-27-2012
I've found out the problem which was created by me and my dummy tries to get my internet share working..

I created a route on host2 route add -net 192.168.0.0 netmask 255.255.0.0 don't ask me why! Smilie

with this setup the connection to the local subnet connected to host1 isn't possible anymore.

can somebody please explain why and what's going on when this route is set?

I've deleted this route and now everything works fine..
# 5  
Old 02-27-2012
You've added a route without specifying a gateway for it. For the route to work, you'd need to add a gateway parameter too using the gw switch. Also you've set a class C address up as a Class B one, 192.168.xxx.yyy is a Class C subnet with a mask 255.255.255.0 so in effect you were saying both separate subnets (192.168.5.x and 192.168.10.x) were in the same subnet and this messed up your routing.

Glad you got it sorted, sorry I took so long to respond, mad busy weekend!
This User Gave Thanks to spynappels For This Post:
# 6  
Old 02-29-2012
thanks, will have to read about meaning and usage of netmask again...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To run a local shell script in a remote machine by passing arguments to the local shell script

I need to run a local shell script on a remote machine. I am able to achieve that by executing the command > ssh -qtt user@host < test.sh However, when I try to pass arguments to test.sh it fails. Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies

2. UNIX for Dummies Questions & Answers

I have files that are locked up...

Here's the story: I had an LaCie Internet Space (1TB)... Recently the network (or software) functions of the device just died... I tried to access it via different routers, checking UTP, tried everything possible to rule out physical damage to components. Then i got the disk out of its... (2 Replies)
Discussion started by: SentinelX
2 Replies

3. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

4. UNIX for Advanced & Expert Users

Who locked my id?

I am running Solaris 10. Occasionally, my id gets loked. I want to know who/which rougue process locked it. How do I find out? Thanks, KNK (9 Replies)
Discussion started by: nkamatam
9 Replies

5. Solaris

Server Locked

Hi i was changing the entry in the /etc/passwd file for the root user. i was changing the shell from sh to bash . I changed the file and rebooted the server.Now it is saying that invalid shell. I think i have misspelt bash. now the machine is set to boot in maultiuser mode so there is no... (5 Replies)
Discussion started by: asalman.qazi
5 Replies

6. Shell Programming and Scripting

Net::SSLeay or Net::FTPSSL

Hello, I ran into an issue in one of my monitoring scripts. If I use the public ip address in my connection string everything works, but if I switch the connection string ip to 127.0.0.1 or the internal ip I get, " Connection refused at... (1 Reply)
Discussion started by: Styles
1 Replies

7. AIX

account is always locked out

we have a user name "Test1" that account is alwyas locked out. The user has been used to many servers to ftp a file from the main server. i already increase the MaxStartups to 99. And still after how many days account will locked. (3 Replies)
Discussion started by: invinzin21
3 Replies

8. HP-UX

locked out!

:confused: I have an K580 HP server. All I did was change the IP address on the NIC and now I can't telnet into it. I can ping, but no telnet. Also, it won't boot if the console monitor is plugged in. ANY IDEAS??? (1 Reply)
Discussion started by: ncmurf00
1 Replies

9. AIX

locked a password

good morning just a confirmation, to lock a password for a user, we must to write 0 for password min age and password max age option ? thank you (0 Replies)
Discussion started by: pascalbout
0 Replies

10. UNIX for Dummies Questions & Answers

why i have local.profile, local.cshrc,local.login instead of .profile, .login ?

Hello again ! Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ? my all files in pwd shoes local. before any file. is anybody can tell me about that ? Thanks Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies
Login or Register to Ask a Question