Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Red Hat Linux server that is located at another facilitiy. It is hooked into a switch, this switch is hooked into both a cable modem and a point-to-point T-1 back to our main office.
The Linux server has it's default gateway set to the point-to-point T-1, all it does is send files back to the main office.
However, I now have a need for it to access a file located elsewhere on the Internet. Our current routing does not permit the server to access the Internet through the point-to-point T-1 so what I would like to do is give it temporary Internet access through the cable modem.
I know I could change the Default Gateway to the cable modem, but I want to avoid this. The server is constantly sending files to an internal (172.*) IP, so if I set it to the cable modem it will no longer be able to access it.
Think about what you're saying, if your server is constantly sending files to a 172.*.*.* address, but now you want it to have access to random sites on the internet(*.*.*.*) which one do you think the default gateway *should* be?
It's probably going to be easier to add a static route to 172.0.0.0/255.0.0.0 to go via the P-t-P T1, and then setup your default route to the internet.
The other way to look at this is, what type of traffic is the box pulling from the internet, versus sending on the PtP link? If you're pulling ftp/http from the internet, but sending samba or scp or some other form across the PtP link, you could potentially use a proxy.
I'm basically trying to upgrade a 3rd party piece of software on the Linux server, part of this upgrade requires the server going out to the Internet and grabbing some files needed for the upgrade. The company that makes the software will not give me the files to be put onto the server, they said it has to be done by the server downloading the files over the Internet.
This is going to be a 10 minute job. I need to give this Linux box access to the Internet for 10 minutes.
If I change the Default Gateway, is any reboot required? Or does it happen automatically?
I'm basically trying to upgrade a 3rd party piece of software on the Linux server, part of this upgrade requires the server going out to the Internet and grabbing some files needed for the upgrade. The company that makes the software will not give me the files to be put onto the server, they said it has to be done by the server downloading the files over the Internet.
This is going to be a 10 minute job. I need to give this Linux box access to the Internet for 10 minutes.
The system can only have one default route (gateway.) You could change the default route for that 10 minutes, although if the system needs permenant Internet access, I would set up the default route to the Internet facing router and set up static routes for whatever IP subnets exist on the other side of the T1.
Quote:
Originally Posted by Pryach
If I change the Default Gateway, is any reboot required? Or does it happen automatically?
Nope, route tables are modified on the fly. If you wish to make the changes permenant across reboots, you need to set the new routes up in the config [files or GUI, depending on your preference]
ip route add <ip.address.of.updateserver>/32 dev <internet device>
That's a possibility, however, I know the scripts use domain names and not IP addresses, will it be able to resolve the domain name? I know the current setup does not allow dns resolving.
if it doesnt work with the domain name ( no dns resolution ) you could enter the domain name and the ip for that server in the /etc/hosts file or ust use the ip.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.