Jump to content

Question

Posted

Путаюсь добавить ipv6 маршрут так:

ipv6 route 200::/7 301:8a63:d5c1:f37c::97:91/128 Wireguard0
или
ipv6 route 200::/7 Wireguard0 301:8a63:d5c1:f37c::97:91/128
или
ipv6 route 200::/7 Wireguard0 301:8a63:d5c1:f37c::97:91
или 
ipv6 route 200::/7 301:8a63:d5c1:f37c::97:91 Wireguard0

получаю ошибку:

Для 3
Network::Ip6::RoutingTable error[4980739]: invalid route format.

- все остальные
Command::Base error[7405602]: argument parse error.

Для ipv4 все проходит без проблем, синтаксис совпадает

ipv6 route ({prefix} | default)                  (({interface} [{gateway}]) | {gateway})           [auto] [{metric}] [reject]
ip route (({network} {mask}) | {host} | default) (({gateway} [{interface}]) | {interface})         [auto] [{metric}] [reject]

Что я делаю не так?

6 answers to this question

Recommended Posts

  • 0
Posted (edited)
27 минут назад, avn сказал:

Что я делаю не так?

Укажите в качестве шлюза не название интерфейса а ip

ipv6 route 200::/7 301:8a63:d5c1:f37c::97:91
Edited by mrGhotius
  • 0
Posted

Ошибку invalid route format возвращает ядро, потому с первого взгляда неясно в чем дело. Однако у меня  так  работает:

ipv6 route 200::/7 Wireguard0 301:8a63:d5c1:f37c::97:91
  • Upvote 1
  • 0
Posted
1 час назад, Le ecureuil сказал:

Ошибку invalid route format возвращает ядро, потому с первого взгляда неясно в чем дело. Однако у меня  так  работает:

ipv6 route 200::/7 Wireguard0 301:8a63:d5c1:f37c::97:91

Попробую на 4.3

  • 0
Posted (edited)
В 29.08.2024 в 12:12, avn сказал:

Попробую на 4.3

как работает на 4.3?

хочу заблокировать подсеть yandex на TV, никак не пойму с как прописать маршрут

Дополнение:

Решил прописав в cli

ipv6 route 2a02:6b8::/32 Home

Edited by reddaddy
решил вопрос
  • 0
Posted
В 29.08.2024 в 12:12, avn сказал:

Попробую на 4.3

На 4.3a13 не работает

(config)> ipv6 route 2a12:0000:0000:9700::/56 Wireguard0 2a12:0000:0000:9700::91 auto reject
Network::Ip6::RoutingTable error[4980739]: invalid route format.

 

  • 0
Posted

У меня так работает:

ipv6 route 2a03:2880::/32 Wireguard0 auto
ipv6 route 2a00:1450::/32 Wireguard0 auto

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.