How to connect ADSL connection direct to computer ?

December 2, 2012 at 21:05:52
Specs: CentOS
I have CentOS and the application I am running does not listen on 192.168.1.5 (Private IP address). Right now I have connected using bridge mode and I can see in my network configuration-> ppp and eth0. PPP has public IP and eth0 has private IP. Is there any way that I can get public ip assigned to eth0? I do not have Static IP, I want to use the public dynamic IP assigned by my ISP to use in eth0 interface.

Thanks
Chris


See More: How to connect ADSL connection direct to computer ?

Report •

#1
December 3, 2012 at 07:11:55
I have CentOS and the application I am running does not listen on 192.168.1.5 (Private IP address).

Why doesn't it? Can it not be configured to do so?

What application is this? I ask because it's possible myself or one of the other helpers may have worked with this application in the past and may be able to help get it working with your LAN.

Is there any way that I can get public ip assigned to eth0? I do not have Static IP, I want to use the public dynamic IP assigned by my ISP to use in eth0 interface.

All you should have to do is connect the network cable coming out of the ADSL modem into your computer. Set the interface to DHCP and you should get an IP from your provider.

If you don't, it's possible your provider registers the MAC address and you'll have to spoof the modems MAC on your PC. That or you'll have to contact your provider and explain that you wish to register a second MAC.

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

#2
December 3, 2012 at 20:22:17
There's probably no routes between the two interfaces. You need to configure IP forwarding and setup NAT in iptables. Google something like "CentOS IP forwarding" and you should be able to find a tutorial.

Tony


Report •
Related Solutions


Ask Question