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

Настройка vrf в linux

Настраиваю vrf так:

ip link add dev vrf20 type vrf table 10
ip link add dev add dev vrf20p0 type veth peer name vrf20p1
ip link set dev vrf20p0 up
ip link set dev vrf20p1 up
ip link set dev vrf20p1 master vrf20

Далее делаю:

ifconfig vrf20p0 192.168.0.2
ifconfig vrf20p1 192.168.0.1

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

root@ne-vlezay80:~# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.2 icmp_seq=1 Destination Host Unreachable
^C
--- 192.168.0.1 ping statistics ---
9 packets transmitted, 0 received, +1 errors, 100% packet loss, time 8183ms
pipe 8

Что не так?

Share this post


Link to post
Share on other sites

Может там надо что-то типа добавить?

 

ip link set dev vrf20 up

 

PS А чего такая мешанина ip и ifconfig?

Share this post


Link to post
Share on other sites

Может там надо что-то типа добавить?

 

ip link set dev vrf20 up

 

PS А чего такая мешанина ip и ifconfig?

добавлял - не помогает

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
Sign in to follow this