Community discussions

MikroTik App
 
user442
just joined
Topic Author
Posts: 3
Joined: Sat May 20, 2023 12:33 am

veth deleted, cannot create new interface

Thu Aug 31, 2023 7:49 pm

I upgraded to 7.11.1 and my veth1 interface disappeared. When I try to re add it I get
[admin@RB5009UG+S+] > interface/veth/add name=veth1 address=10.21.65.2/32 gateway=10.21.65.1            
failure: veth setup failed
I can add the interface without a gateway and then add the gateway later but it doesn't route, nor does it survive reboot. Help!

BTW everything worked great before the upgrade. I tried downgrading to 7.11 and restoring my backup but the problem persists.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: veth deleted, cannot create new interface

Thu Aug 31, 2023 8:06 pm

It may be enforcing that your gateway is outside the subnet's range (e.g. container IP is /32 but should be /24). I'm guess the validity check is new, and upgrade removed it since it was "invalid" and why you can't add either.

e.g.
address=10.21.65.2/32
like should be...
address=10.21.65.2/24
 
user442
just joined
Topic Author
Posts: 3
Joined: Sat May 20, 2023 12:33 am

Re: veth deleted, cannot create new interface

Thu Aug 31, 2023 8:43 pm

It may be enforcing that your gateway is outside the subnet's range (e.g. container IP is /32 but should be /24). I'm guess the validity check is new, and upgrade removed it since it was "invalid" and why you can't add either.

e.g.
address=10.21.65.2/32
like should be...
address=10.21.65.2/24
Thank you!
 
ConradPino
Member
Member
Posts: 337
Joined: Sat Jan 21, 2023 12:44 pm
Contact:

Re: veth deleted, cannot create new interface

Thu Aug 31, 2023 9:38 pm

The same pattern occurs in 7.11 with gateway6 parameter. This fails:
/interface veth add address=192.168.45.200/24 gateway=192.168.45.1 gateway6=2001:470:8248:2d::e name=vbind9
This works:
/interface veth add address=192.168.45.200/24 gateway=192.168.45.1 name=vbind9
/interface veth set [ find where name=vbind9 ] address=192.168.45.200/24 gateway=192.168.45.1 gateway6=2001:470:8248:2d::e
and the export looks like:
/interface veth
add address=192.168.45.200/24 gateway=192.168.45.1 gateway6=2001:470:8248:2d::e name=vbind9
then veth add fails at reboot.
 
ConradPino
Member
Member
Posts: 337
Joined: Sat Jan 21, 2023 12:44 pm
Contact:

Re: veth deleted, cannot create new interface

Thu Aug 31, 2023 9:53 pm

Oy, this works:
/interface veth
add address=192.168.45.200/24,2001:470:8248:2d:c086:31ff:fe24:851a/64 gateway=192.168.45.1 gateway6=2001:470:8248:2d::e name=vbind9
Intuitively obvious but only if known.

Similar parameter check behavior for add and set would be nice.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4324
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: veth deleted, cannot create new interface

Thu Aug 31, 2023 10:53 pm

Yeah, VETH used not check anything, and now it does check "more" but not everything.... But does seem like it should be handled better/bug. e.g. not break on upgrade & gateway/gateway6 outside the container's address= subnets should not be allowed
 
ConradPino
Member
Member
Posts: 337
Joined: Sat Jan 21, 2023 12:44 pm
Contact:

Re: veth deleted, cannot create new interface

Thu Aug 31, 2023 11:38 pm

@Amm0 *sigh*
Create Network is so incomplete https://help.mikrotik.com/docs/display/ ... atenetwork
Tips and Tricks is only place IPv6 is shown https://help.mikrotik.com/docs/display/ ... sandtricks
IMO address parameter worst; it accepts (A) multiple addresses, (B) both IPv6 and IPv6, and neither is obvious.
I am so grateful your contributions here inspired that discovery. Thank you, thank you, thank you.

Who is online

Users browsing this forum: Elvis1991, Mosmos and 28 guests