Hot Downloads

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Two Gateways

Two Gateways 12 years 2 months ago #14758

hi
i have a machine with two NIC .
One has 192.168.2.52 ip with gateway 192.168.2.1
Other has 172.16.16.45 ip with gateway 172.16.16.150
how can i configure my route such that my network traffic is routed
to the concerned gateway.
I am using Fedora Core 3.

Re: Two Gateways 12 years 2 months ago #14775

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Expert Member
  • Posts: 613
  • Thank you received: 0
The utility to edit the routing table is "route". You can check it's syntax through "man route". For the specific occasion, you would execute something like the following (using the appropriate network masks):
[code:1]route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.2.1[/code:1]
[code:1]route add -net 172.16.0.0 netmask 255.255.0.0 gw 172.16.16.150[/code:1]

Keep in mind that routing table lies in memory, so the above need to be executed after every system boot. Redhat/Fedora provide a facility specifically to automate this, which should lie somewhere under /etc/sysconfig, or if no boot services rely on communicating with remote networks, you could just add the commands to /etc/rc.local (which is executed in the very end of al init scripts).
  • Page:
  • 1
Time to create page: 0.115 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup