Jump to content
Калькуляторы

ROS7 ping через vrf

Версия 7.19.2. Такие настройки:

/ip vrf add interfaces=none name=vrf1
/ip vrf add interfaces=none name=vrf2

/ip route add dst-address=0.0.0.0/0 gateway=provider1
/ip route add dst-address=0.0.0.0/0 gateway=provider1 routing-table=vrf1
/ip route add dst-address=0.0.0.0/0 gateway=provider2 routing-table=vrf2

Стандартный пинг работает:

/ping 8.8.8.8 count=1

Так отваливается по таймауту:

/ping 8.8.8.8 count=1 vrf=vrf1

Так тоже отваливается по таймауту:

/ping 8.8.8.8 count=1 vrf=vrf2

Так работает:

/ping 8.8.8.8 count=1; /ping 8.8.8.8 count=1 vrf=vrf1

Так тоже работает:

/ping 8.8.8.8 count=1; /ping 8.8.8.8 count=1 vrf=vrf2

 

Подскажите пожалуйста, это глюк или странный механизм, которого я пока не понимаю?

 

Share this post


Link to post
Share on other sites

Правильно должно быть /ping 8.8.8.8 routing-table=vrf2 

Share this post


Link to post
Share on other sites

Quote

Правильно должно быть /ping 8.8.8.8 routing-table=vrf2 

В 7-й версии нет routing-table

 

 

Share this post


Link to post
Share on other sites

Какая точно версия ROS? Они то чинят, то ломают.

Альтернатива - делаете loopback, вешаете адрес на него, включаете в нужный VRF и пингуете с указанием interface=loxx

Share this post


Link to post
Share on other sites

Quote

Какая точно версия ROS?

7.19.2

Share this post


Link to post
Share on other sites

Quote

Альтернатива - делаете loopback, вешаете адрес на него

Спасибо! Все получилось!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now