Got it

The next hop problem for static routing

Created: Oct 2, 2020 08:24:25Latest reply: Oct 2, 2020 08:29:18 576 2 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello,

I would like to ask if the local interface and the next-hop address are added at the same time when writing the static route, if the next-hop address of the corresponding interface is not the address in the static route, will the route become invalid at this time?

Does anyone know? Thanks!

Featured Answers

Recommended answer

jason_hu
Admin Created Oct 2, 2020 08:29:18

Hi,

The next-hop address of an Ethernet static route needs to be filled. The outbound interface is different from the specified interface. Therefore, the route is invalid.

[~CD_U10_TAC_B11_CE12800_1]dis ip routing-table 99.1.1.1
Proto: Protocol Pre: Preference
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Summary Count : 1

Destination/Mask Proto Pre Cost Flags NextHop Interface

99.1.1.1/32 Static 60 0 D 50.1.2.2 10GE1/0/16
[~CD_U10_TAC_B11_CE12800_1]dis cur | in 99.1.1.1
ip route-static 99.1.1.1 255.255.255.255 10GE1/0/16 50.1.2.2
[~CD_U10_TAC_B11_CE12800_1]inter 10
[~CD_U10_TAC_B11_CE12800_1]inter 10GE 1/0/16
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]shu
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]shutdown
[*CD_U10_TAC_B11_CE12800_1-10GE1/0/16]com
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]dis ip routing-table 99.1.1.1
Proto: Protocol Pre: Preference
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Summary Count : 1

Destination/Mask Proto Pre Cost Flags NextHop Interface

0.0.0.0/0 Static 60 0 RD 51.1.254.2 Vlanif60
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]

View more
  • x
  • convention:

user_3982663
user_3982663 Created Oct 2, 2020 08:31:37 (0) (0)
Thanks, I've verified that it doesn't work.  
All Answers

Hi,

The next-hop address of an Ethernet static route needs to be filled. The outbound interface is different from the specified interface. Therefore, the route is invalid.

[~CD_U10_TAC_B11_CE12800_1]dis ip routing-table 99.1.1.1
Proto: Protocol Pre: Preference
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Summary Count : 1

Destination/Mask Proto Pre Cost Flags NextHop Interface

99.1.1.1/32 Static 60 0 D 50.1.2.2 10GE1/0/16
[~CD_U10_TAC_B11_CE12800_1]dis cur | in 99.1.1.1
ip route-static 99.1.1.1 255.255.255.255 10GE1/0/16 50.1.2.2
[~CD_U10_TAC_B11_CE12800_1]inter 10
[~CD_U10_TAC_B11_CE12800_1]inter 10GE 1/0/16
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]shu
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]shutdown
[*CD_U10_TAC_B11_CE12800_1-10GE1/0/16]com
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]dis ip routing-table 99.1.1.1
Proto: Protocol Pre: Preference
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Summary Count : 1

Destination/Mask Proto Pre Cost Flags NextHop Interface

0.0.0.0/0 Static 60 0 RD 51.1.254.2 Vlanif60
[~CD_U10_TAC_B11_CE12800_1-10GE1/0/16]

View more
  • x
  • convention:

user_3982663
user_3982663 Created Oct 2, 2020 08:31:37 (0) (0)
Thanks, I've verified that it doesn't work.  

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.