LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2009, 01:54 PM   #1
freeburn
LQ Newbie
 
Registered: Dec 2009
Distribution: ubuntu jaunty desktop, ubuntu karmic server, debian lenny
Posts: 3

Rep: Reputation: 0
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
 
Old 12-13-2009, 02:53 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
What IP are you attempting to telnet too, and what route do you think it should take.
 
Old 12-13-2009, 03:34 PM   #3
freeburn
LQ Newbie
 
Registered: Dec 2009
Distribution: ubuntu jaunty desktop, ubuntu karmic server, debian lenny
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by harry edwards View Post
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
 
Old 12-13-2009, 03:37 PM   #4
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
According to your routing table packets will go to eth1 through GW 192.168.12.1.
 
Old 12-13-2009, 03:54 PM   #5
freeburn
LQ Newbie
 
Registered: Dec 2009
Distribution: ubuntu jaunty desktop, ubuntu karmic server, debian lenny
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nimnull22 View Post
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?
 
Old 12-13-2009, 04:18 PM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Yes, in accordance with VPN settings.

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

Last edited by nimnull22; 12-13-2009 at 04:22 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.2 cannot activate network device on board Intel NIC nino90 Linux - Networking 2 12-10-2008 06:51 PM
VPN pptpd connected vpn server only access need help please u4david Linux - Networking 1 10-17-2008 03:54 PM
Private - Secure VPN? JakReloaded Linux - Server 4 09-04-2008 12:25 PM
CentOS 5 .. .Added additional NIC.. does not see network.. StamfordRob Linux - Networking 1 05-19-2008 11:31 PM
sharing VPN access with lan + after vpn connected unable to ping lan/public ip xxx_anuj_xxx Linux - Networking 1 03-14-2008 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration