LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't telnet to a VPN when another NIC is connected to a private network in CENTOS (https://www.linuxquestions.org/questions/linux-networking-3/cant-telnet-to-a-vpn-when-another-nic-is-connected-to-a-private-network-in-centos-775386/)

freeburn 12-13-2009 01:54 PM

can't telnet to a VPN when another NIC is connected to a private network in CENTOS
 
I have two NIC. one is connected to a private network. and ip of that network is determined by dhcp.

another NIC is connected to another network. for that network, ip is specifically assigned by the network administrator of that network.

eth0 is connected to that dedicated line and eth1 is connected to my office network.

i'm giving the configuration of the two network.

Code:

ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:24:1D:7E:5E:4D 
          inet addr:192.168.250.186  Bcast:192.168.250.191  Mask:255.255.255.248
          inet6 addr: fe80::224:1dff:fe7e:5e4d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:8 errors:0 dropped:3651666419 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:640 (640.0 b)  TX bytes:12065 (11.7 KiB)

          Interrupt:16 Base address:0x8000

eth1      Link encap:Ethernet  HWaddr 00:21:27:FC:60:BB 
          inet addr:192.168.12.11  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::221:27ff:fefc:60bb/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:115 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0


route -n

Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.250.184 0.0.0.0        255.255.255.248 U    0      0        0 eth0
192.168.12.0    0.0.0.0        255.255.255.0  U    0      0        0 eth1

192.168.122.0  0.0.0.0        255.255.255.0  U    0      0        0 virbr0
169.254.0.0    0.0.0.0        255.255.0.0    U    0      0        0 eth1
0.0.0.0        192.168.12.1    0.0.0.0        UG    0      0        0 eth1


harry edwards 12-13-2009 02:53 PM

What IP are you attempting to telnet too, and what route do you think it should take.

freeburn 12-13-2009 03:34 PM

Quote:

Originally Posted by harry edwards (Post 3790069)
What IP are you attempting to telnet too, and what route do you think it should take.


the ip i want to telnet is 192.168.51.5
gateway 192.168.250.186

nimnull22 12-13-2009 03:37 PM

According to your routing table packets will go to eth1 through GW 192.168.12.1.

freeburn 12-13-2009 03:54 PM

Quote:

Originally Posted by nimnull22 (Post 3790128)
According to your routing table packets will go to eth1 through GW 192.168.12.1.

So should i add a static route for reaching the VPN?

nimnull22 12-13-2009 04:18 PM

Yes, in accordance with VPN settings.

And may be that page will help you:
http://www.linuxhomenetworking.com/w...ing_Linux_VPNs


All times are GMT -5. The time now is 08:56 PM.