|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Network/Internet Questions regarding network or Internet configuration and use in SUSE Linux |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Having a little trouble figuring this out. Maybe its lack of experience, maybe its lack of coffee, maybe I just need a second set of eyes to help me out with this. Here is the information I have and that I can give you.
I have 2 NIC cards in a SUSE machine running 10.2. NIC 1 is assigned the IP address 10.220.0.205. Subnet is 255.255.252.0, gateway is 10.220.0.2 NIC 2 is assigned the IP address 10.70.6.10. Subnet is 255.255.0.0, gateway is 10.70.0.1 NIC 1 is identified as ifcfg-eth-id-00:17:a4:3b:0e:cb, here is what that file contains. Quote:
Quote:
Quote:
Any help or push in the right direction here would be greatly appreciated. Thanks |
|
|||
|
There is only one default gateway. What is the 10.70 network? An internal network? Is the 10.220 network the one with a route to the outside world? If so, then just set the default gateway to 10.220.0.2. You actually don't need the first line in /etc/sysconfig/routes. If you do
route -n you will see that the route to the 10.70 network goes through that device and for the 10.220 network through the other device. That's implied when you set up a network interface with a netmask. Of course you are asking, or should be, what is the meaning of the gateway 10.70.0.1. I would ask you then: gateway to what? If not another internal network, but also to the outside world and works equally well, then you have to make a choice of gateway. |
|
|||
|
the 10.220 network is internal to the organization
the 10.70 network is for me to VPN into the machine from my office. A little background is that I am a vendor in a hospital. My server sits at 10.220.0.205, which is internal to the hospital. The hospital used to have a firewall on 10.220.0.1 (which was the old gateway) that had access to the outside world (this way I could pull down updates and access certain sites on the internet I needed for information on my server). One of the network admins here at the hospital set the second nic on the server to 10.70.6.11 so I can access it via their VPN from my office. So, I guess my question would be that if I set my default gateway to 10.70.0.1 (which gives me access to the outside world) would that disrupt any traffic internally on the 10.220.x network? If it won't interrupt traffic on the internal (220) network then I don't see a problem setting the default gateway to the 10.70.0.1 IP address. |
|
|||
|
The way IP routing works is that specific routes take precedence over the default route. So if there is a rule (implied by the netmask, or explicit, in the routing config file) that says: for traffic going to the 10.220 network do this (use this device, or this gateway), you're fine.
Of course the gateway at 10.70.0.1 has to be instructed to do the right thing also. The default route is, as you realise, the route of last resort, for any IP address not covered by a specific rule. |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|