Solved route - issue with interface name with dots (on example lagg0.374)

Hello! I use route to link address on specific interface as:
Code:
#route add xxx.xxx.xxx.xxx -link vlan374 -iface
and all work well!

Today I try create VLAN as lagg0.374 and route command will fail:
Code:
#route add xxx.xxx.xxx.xxx -link lagg0.374 -iface
add host xxx.xxx.xxx.xxx: gateway lagg0.374

but in route table interface changed on "lagg0" without ".374":
Code:
#netstat -rn | grep xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx     37:04              UHS       lagg0
It's route trouble? how add route on interface with dots in name?
Code:
# uname -a
FreeBSD  12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC  amd64
 
You're using -link incorrectly.

route add xx.xx.xx.xx/yy -iface lagg0.374

Code:
root@maelcum:~ # route add 10.0.2.0/24 -iface em1.11
add net 10.0.2.0: gateway em1.11
root@maelcum:~ # netstat -rn4 | grep 10.0.2.0
10.0.2.0/24        90:e2:ba:54:ff:22  US       em1.11
 
Back
Top