Got it

how to disable the static route for uplink for PBR test

Created: Feb 2, 2021 18:34:17Latest reply: Feb 4, 2021 18:12:24 409 4 0 0 0
  Rewarded HiCoins: 5 (problem resolved)

Hello Dears


I am a student  network engineer with previous experience with other vendor routers  now I am working on Huawei AR2240 router 

My question is what configuration command should I use to disable the static route for uplink for the PBR test?

topology for the senario

Thank you


system-view

#

 sysname UIP-4#Build-2240-GR01

#

telnet server enable

#

 snmp-agent local-engineid 800007DB03000000000000

 snmp-agent 

#

 clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load flash:/portalpage.zip

#

 drop illegal-mac alarm

#

#

 wlan ac-global carrier id other ac id 0

#

 set cpu-usage threshold 80 restore 75

#

dhcp enable

#

bfd

#

acl number 2000  

 rule 5 permit source 192.168.1.0 0.0.0.255 

#


#

interface Vlanif1

 ip address 192.168.1.1 255.255.255.0

 dhcp select interface

 dhcp server excluded-ip-address 192.168.1.2 192.168.1.126

 dhcp server excluded-ip-address 192.168.1.128

 dhcp server excluded-ip-address 192.168.1.254

 dhcp server dns-list 8.8.8.8 213.55.96.148 213.55.96.166

#

#

aaa 

 authentication-scheme default

 authorization-scheme default

 accounting-scheme default

 domain default 

 domain default_admin 

 local-user admin privilege level 15

 local-user admin service-type telnet http

#

firewall zone Local

 priority 15

#

interface GigabitEthernet0/0/0

 ip address 10.140.229.2 255.255.255.252 

 nat outbound 2000

#

interface GigabitEthernet0/0/1

 ip address 10.140.230.2 255.255.255.252 

 nat outbound 2000

#

interface NULL0

#

bfd 1 bind peer-ip 10.140.229.1 source-ip 10.140.229.2 auto

 commit

#

bfd 2 bind peer-ip 10.140.230.1 source-ip 10.140.230.2 auto

 commit

#

ip route-static 0.0.0.0 0.0.0.0 10.140.229.1 preference 10 track bfd-session 1

ip route-static 0.0.0.0 0.0.0.0 10.140.230.1 preference 100 track bfd-session 2


#

user-interface con 0

 authentication-mode password

user-interface vty 0 4

 authentication-mode aaa

 protocol inbound all

user-interface vty 16 20

#

wlan ac

#

return


Featured Answers

Recommended answer

DDSN
Admin Created Feb 4, 2021 01:22:28

Hi Berakia,
Verified by ensp,
If you want to unbind the static route from the BFD session, run the following command:
undo ip route-static 0.0.0.0 0.0.0.0 10.140.229.1 preference 10 track bfd-session
If you want to delete the entire static route, you can execute the following command:
undo ip route-static 0.0.0.0 0.0.0.0 10.140.229.1
I hope it helps!
View more
  • x
  • convention:

All Answers
Hello User. we are reviewing your question and we will answer you shortly. Thanks.
View more
  • x
  • convention:

LuizPuppin
LuizPuppin HCIE Author Created Feb 2, 2021 21:07:04

You cannot disable a route-static. You need to delete using the undo command before the complete route-static or you can increase the preference to a number greater than another equal route which you can stop the use.
View more
  • x
  • convention:

DDSN
DDSN Admin Created Feb 4, 2021 01:22:28

Hi Berakia,
Verified by ensp,
If you want to unbind the static route from the BFD session, run the following command:
undo ip route-static 0.0.0.0 0.0.0.0 10.140.229.1 preference 10 track bfd-session
If you want to delete the entire static route, you can execute the following command:
undo ip route-static 0.0.0.0 0.0.0.0 10.140.229.1
I hope it helps!
View more
  • x
  • convention:

BAZ
BAZ MVE Author Created Feb 4, 2021 18:12:24

Just delete it using following commands, but keep it save  for future use :)

undo ip route-static 0.0.0.0 0.0.0.0 10.140.229.1 
undo ip route-static 0.0.0.0 0.0.0.0 10.140.230.1


View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.