How to hold static ip address from a different gateway router
Hi, I'm running Ubuntu 10.04 and my setup is as follows:
network:
192.168.13.1
--comp1
--comp2
192.168.25.1
--me
--comp4
As you can see, I am directly connected to router 192.168.25.1, and so my ip address is 192.168.25.101. I want my ip address to be 192.168.13.101, and make router 192.168.13.1 my gateway router. Is this possible under the current physical layout (I do not want to have to connect directly into 192.168.13.1, but keep my computer where it is at)?
Note: When I run tracepath, it shows 192.168.13.1 is one hop away.
What I've tried:
*Manually set ip: 192.168.13.101
*Manually set mask: 255.255.255.0
*Manually set gateway: 192.168.13.1
*Manually set up dns servers through /etc/resolv.conf
The problem is under this manual setup, I cannot ping 192.168.13.1 and running command netstat -rn returns the following:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.25.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.13.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.31.1 0.0.0.0 UG 0 0 0 eth0
# Generated by NetworkManager
Thank you guys!
unraised
|