Page 1 of 1

How to remove a particulat ip route in 6850 and 9700

Posted: 10 Nov 2011 05:12
by ram
Hi,

how to remove the particular static route in omniswitch 6850.


Regards,
Ram

Re: How to remove a particulat ip route in 6850 and 9700

Posted: 10 Nov 2011 14:13
by one6f
with
no ip static-route 1.2.3.4/24 gateway 1.2.3.1

Re: How to remove a particulat ip route in 6850 and 9700

Posted: 24 Nov 2011 06:13
by ram
Thanks man, i want know how to add a particular network in ospf.

Re: How to remove a particulat ip route in 6850 and 9700

Posted: 24 Nov 2011 07:28
by one6f
Hi,
assume you need to add a particular network 10.10.10.1/24 in ospf:

Code: Select all

vlan 2 enable name "VLAN 2"
vlan 2 port default 1/1
ip interface "vl2" address 10.10.10.1 mask 255.255.255.0 vlan 2
ip interface "Loopback0" address 172.16.1.1 
ip load ospf
ip ospf area 0.0.0.0         
ip ospf interface "vl2"
ip ospf interface "vl2" area 0.0.0.0         
ip ospf interface "vl2" status enable 
ip ospf status enable 
ip router router-id 172.16.1.1
Or you can redistribute the local routes in OSPF:

Code: Select all

ip interface "vl10" address 10.10.10.1 mask 255.255.255.0 vlan 10
ip interface "vl20" address 10.10.20.1 mask 255.255.255.0 vlan 20
ip interface "vl30" address 10.10.30.1 mask 255.255.255.0 vlan 30
ip route-map "RedistLocal" sequence-number 50 action permit
ip route-map "RedistLocal" sequence-number 50 match ip-address 10.10.0.0/16 redist-control aggregate permit
ip redist local into ospf route-map "RedistLocal" status enable
Or you can redist static routes in OSPF

Code: Select all

ip static-route 10.20.10.0/24 gateway 10.10.20.2 metric 1
ip route-map "RedistStatic" sequence-number 50 action permit
ip route-map "RedistStatic" sequence-number 50 match ip-address 10.20.10.0/24 redist-control all-subnets permit
ip redist static into ospf route-map "RedistStatic" status enable
Or default route

Code: Select all

ip ospf default-originate always metric-type type2 metric 1
ip static-route 0.0.0.0/0 gateway 192.168.1.1 metric 1

Re: How to remove a particulat ip route in 6850 and 9700

Posted: 28 Nov 2011 06:09
by ram
Hey Thanks a lot man Really it will be helpful for implementing ospf.