Cisco Ip route to Linux

Closed
Taffy - May 22, 2008 at 04:18 AM
 Thanahthaus - May 23, 2008 at 07:42 AM
Hello Masters,

I have a problem regarding linux routing, I have a static ip address (21.23.25.21 mask 255.255.255.252) using my cisco 2800 series i was able to ip route it to (25.21.23.2 mask 255.255.255.224) it was a public ip how can i do that using linux commands.

Using Cisco

interface eth0
ip address 21.23.25.21 255.255.255.252

interface eth1
ip address 25.21.23.2 255.255.255.252

ip route 0.0.0.0 0.0.0.0 21.23.25.21

How can I translate that using linux command

Thank you and more power
Related:

1 response

Hi,

interface eth0
ip address 21.23.25.21 255.255.255.252

=> ifconfig eth0 21.23.25.21/30

ip route 0.0.0.0 0.0.0.0 21.23.25.21

=> Something like -> route add 0.0.0.0 0.0.0.0 21.23.25.21 (check syntaxe with man route )

Good luck
0