Configuring Static IP CentOS so router Motorola NVG510 can recognize device and port forward NAT.
1 Attachment(s)
Hello and thanks for reading,
So I've been working with Linux servers for a good while now and the way I've always done things have always worked....Until NOW that is. Basically AT&T upgraded my internet residential service from DSL to there new Uverse setup which required a new modem. The modem is also a router with a built in firewall (typical router). So Basically I've been playing with Virtual Machines which I created servers and some I need to broadcast to the open world. Now I know AT&T has the ports open, but the problem I'm experiencing, where a typical router allows you to do Port Fowarding/NAT and you basically forward a port to a host number. All my servers I've created and communicate with the openwords. Now this new router just doesn't let me forward a port to a host unless its in the Device list. Now this is what I can't figure if I use DHCP it works and pulls and address, but it still not in the Device List. On my Linux Mint Virtual Machine I can use DHCP with the network manager and the device is listed. That is the James-VirtualBox. So basically what I want to know is how do I forward the host/device name to the router on my CentOS installation pulling a static IP? I've attached the a pic for the Router Port forwarding Code:
[root@oknode ~]# ping linuxquestions.org |
Mixing static IPs together with DHCP in my experience is not so good. As number of devices grow over time ip conflicts are possible. Furthermore if you need to change the subnet one day it can give trouble. You can statically bind an ip on the dhcp server to a specific Mac-address.
About your question. How do you add a device into the list ? I suppose binding an ip will do it? |
Quote:
Yes I know DHCP and Static can cause conflicts. That is why I configure DHCP server only forwards ips between 2 and 99 |
you can have ATT disable all routing functions on their device and set it to bridge mode. that will solve your issue. put your router behind it as they will disable their firewall, DHCP, and NAT.
|
Quote:
The no modem/router I have is Motorola NVG510 which doesn't exactly support bridge mode so it really seems I need a different modem, but there is a little hope. I have found where a few people have done it. http://forums.att.com/t5/Features-an...e/td-p/2890841 But, I'm still going to work to find some more solutions. |
If you want to replace the DSL modem you can consider buying a router with DSL support. Just to get rid of one more device. I don't know if AT&T lets its customers to be off without AT&T-owned modems.
|
Well when AT&T was offering standard ADSL you could use your own router equipment. Now since I'm on the Uverse Technology I'm not sure if a standard DSL model will work or not. From what I understand its a beefed up DSL Line, but I guess that is really something I would have to consult them about, of course I'm sure that have a business class router they would sell me for lots of $$ that would easily solve the trick, but not looking to pay a arm & leg for something that should be so simple in the first place.
But I'll find a solution eventually, hopefully sooner rather than later, and I know some others have had issue with this so I'll be sure to post my results when I solve my problem. I guess on to more hours of hopeless research =) Cheers! |
Quote:
Quote:
|
According to this page in case of Uverse AT&T forces customers to use their equipment. Then switching Motorola NVG510 to some low cost modem that supports bridging and setting up your home network behind a router you have complete control of will be best option. Also you won't have to pay extra bucks for an AT&T router that could be easily bought from a 3rd party for less price.
|
In the past, when dealing with ISP-supplied modem/router hybrids that don't have a "bridge mode" setting and typically have terrible interfaces and functionality, I've been able to "force" it to be a transparent bridge by assigning my primary router a static IP on the ISP-supplied router's network, and telling the ISP-supplied router to forward everything on every port to my primary router. The primary router then handles the firewall and various port forwarding like normal.
This does create a double NAT with two subnets (but the only device on one of the subnets is your primary router), but sometimes it's the cleanest way to get past the ISP device's restrictions. |
Quote:
Quote:
|
Well I almost got a break through. I finally got my CentOS machine to show up in my device list on my router by changing my centos machine to dynamic ip.
Quote:
Or am I stuck using DHCP on all my openVZ containers too (yikes). I found out att uverse is adsl2+ technology so I'll probably on a venture to by a new modem, since I called there tier 2 support and they told me I have to pay their outsourced support department for assistance with that port forward. ATT is going down hill, I thinking a local cable company is in mind. |
Router: Motorola NVG510
Okay well since my router is junk, I did find a more simple work around other then what other people have proposed. Its working on my network with my OpenVZ Node and the VPS containers on the node. Note: Openvz venet will not work properly for the portforwarding, but venet device will work find behind the router (local network) Since my router has somekind of caching system which I'm going to assume it binds the dhcp address by mac/dhcp_hostname so I basically configured my ifcfg-eth0 to use dhcp Code:
DEVICE=eth0 This is how its displayed in my network device list on my router Device > Device List Code:
So Now that information is cached in the router I changed it back to static IP like this Code:
DEVICE=eth0 Code:
Device IPv4 Address / Name MAC Address Status Connection Allocation Now in my router GUI I can go to my firewall > NAT/Gaming > select my services I want to port forward and my device name can be selected from the device list. Now for some addition info for the work around for the openvz containers thats on my server. You have to use veth and not venet network devices, basically you have to bridge your network device such as this Code:
# vi /etc/sysconfig/network-scripts/ifcfg-vmbr0 # vi /etc/vz/vznet.conf Quote:
# vzctl set <CID> --netif_add eth0 --save Now edit your container/VE/VPS network scripts # vi /vz/root/102/etc/sysconfig/network-scripts/ifcfg-eth0 Quote:
Now go back and change it to static # vi /vz/root/102/etc/sysconfig/network-scripts/ifcfg-eth0 Quote:
Most of this information is not in a manual or anywhere on the web to make a server work with static ips with port forward with this modem/router so I hope this work around will help somebody. |
All times are GMT -5. The time now is 07:06 AM. |