FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.27k stars 1.24k forks source link

vrf unkown interface #362

Closed ne-vlezay80 closed 6 years ago

ne-vlezay80 commented 7 years ago

ne-vlezay80(config)# ip route 10.194.1.0/24 servers % Unknown interface: servers

ifconfig servers servers Link encap:Ethernet HWaddr 8e:e7:54:c1:0a:b6
UP RUNNING NOARP MASTER MTU:65536 Metric:1 RX packets:348 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:28814 (28.1 KiB) TX bytes:3206 (3.1 KiB)

donaldsharp commented 7 years ago

@ne-vlezay80 if servers is in a different vrf then specify the vrf as part of the ip route command: ip route 10.194.1.0/24 servers vrf <VRF>

ne-vlezay80 commented 7 years ago

donaldsharp, ne-vlezay80(config)# ip route 10.194.2.0/24 servers vrf servers ne-vlezay80(config)# exit

S> 0.0.0.0/0 [1/0] via 10.247.0.1, eth0 S> 10.194.0.0/16 [1/0] is directly connected, Null0, bh C> 10.194.0.0/24 is directly connected, vlan10 K 10.194.1.0/24 is directly connected, unknown inactive S 10.194.1.0/24 [1/0] is directly connected, unknown inactive B 10.247.0.0/24 [20/0] via 10.247.0.1 inactive, 03:14:17 C> 10.247.0.0/24 is directly connected, eth0 B> 10.247.1.0/24 [20/0] via 10.247.0.1, eth0, 03:14:17 B> 10.247.2.0/24 [20/0] via 10.247.0.1, eth0, 03:14:17 B> 10.247.203.0/24 [20/0] via 10.247.0.1, eth0, 00:32:47 B> 10.247.204.0/24 [20/0] via 10.247.0.1, eth0, 00:32:47 C> 192.168.122.0/24 is directly connected, eth1

donaldsharp commented 7 years ago

We believe this was fixed a week or so ago. Please check again, if no response in 1 week we'll close

ne-vlezay80 commented 7 years ago

Сделал: ne-vlezay80(config)# ip route 10.194.1.0/24 servers ne-vlezay80(config)#

Но, в списке маршрут не появился: ne-vlezay80# sh ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, P - PIM, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel,

  • selected route, * - FIB route

S> 0.0.0.0/0 [1/0] via 10.247.0.1, ic-br0 S> 10.194.0.0/21 [1/0] is directly connected, Null0, bh C> 10.194.0.0/24 is directly connected, vlan10 C> 10.194.3.0/24 is directly connected, vlan12 B 10.247.0.0/24 [20/0] via 10.247.0.1 inactive, 00:04:28 C> 10.247.0.0/24 is directly connected, ic-br0 B> 10.247.1.0/24 [20/0] via 10.247.0.1, ic-br0, 00:04:28 B> 10.247.2.0/24 [20/0] via 10.247.0.1, ic-br0, 00:04:28 C> 192.168.122.0/24 is directly connected, eth1 ne-vlezay80# Если маршрут создать вручную, мы опять получаем unknown inactive. K * 10.194.1.0/24 [0/0] is directly connected, unknown inactive

eqvinox commented 7 years ago

Can you please add output of:

ne-vlezay80 commented 7 years ago

ne-vlezay80# sh interface Interface eth0 is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table index 2 metric 0 mtu 9000 speed 4294967295 flags: <UP,BROADCAST,RUNNING,MULTICAST> Type: Ethernet HWaddr: 52:54:00:5d:81:90 Interface Type Other Master (bridge) ifindex 4 Interface eth1 is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table index 3 metric 0 mtu 9000 speed 4294967295 flags: <UP,BROADCAST,RUNNING,MULTICAST> Type: Ethernet HWaddr: 52:54:00:0b:ff:2e inet6 fe80::5054:ff:fe0b:ff2e/64 Interface Type Other Interface ic-br0 is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table index 4 metric 0 mtu 9000 speed 0 flags: <UP,BROADCAST,RUNNING,MULTICAST> Type: Ethernet HWaddr: 52:54:00:5d:81:90 inet 10.247.0.250/24 broadcast 10.247.0.255 inet6 fe80::5054:ff:fe5d:8190/64 inet6 fd00:1002:1289:10::10/64 Interface Type Bridge Bridge VLAN-aware: no Interface lo is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table index 1 metric 0 mtu 65536 speed 0 flags: <UP,LOOPBACK,RUNNING> Type: Loopback Interface Type Other Interface t0 is down Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table pseudo interface Interface vlan10 is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table index 6 metric 0 mtu 9000 speed 4294967295 flags: <UP,BROADCAST,RUNNING,MULTICAST> Type: Ethernet HWaddr: 52:54:00:0b:ff:2e inet 10.194.0.1/24 broadcast 10.194.0.255 inet6 2a01:d0:c353:180::1/64 inet6 fe80::5054:ff:fe0b:ff2e/64 Interface Type Vlan VLAN Id 10 Link ifindex 3 Interface vlan12 is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table index 8 metric 0 mtu 9000 speed 4294967295 flags: <UP,BROADCAST,RUNNING,MULTICAST> Type: Ethernet HWaddr: 52:54:00:0b:ff:2e inet 10.194.3.250/24 broadcast 10.194.3.255 inet6 2a01:d0:c353:183::250/64 inet6 fe80::5054:ff:fe0b:ff2e/64 Interface Type Vlan VLAN Id 12 Link ifindex 3 Interface vlan4092 is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: Default-IP-Routing-Table index 5 metric 0 mtu 9000 speed 4294967295 flags: <UP,BROADCAST,RUNNING,MULTICAST> Type: Ethernet HWaddr: 52:54:00:0b:ff:2e inet 192.168.122.1/24 broadcast 192.168.122.255 inet6 fd00:104:1::1/64 inet6 fe80::5054:ff:fe0b:ff2e/64 Interface Type Vlan VLAN Id 4092 Link ifindex 3

root@ne-vlezay80:~# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast master ic-br0 state UP group default qlen 1000 link/ether 52:54:00:5d:81:90 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000 link/ether 52:54:00:0b:ff:2e brd ff:ff:ff:ff:ff:ff inet 127.0.1.1/32 brd 127.0.1.1 scope host eth1 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe0b:ff2e/64 scope link valid_lft forever preferred_lft forever 4: ic-br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:5d:81:90 brd ff:ff:ff:ff:ff:ff inet 10.247.0.250/24 brd 10.247.0.255 scope global ic-br0 valid_lft forever preferred_lft forever inet6 fd00:1002:1289:10::10/64 scope global valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe5d:8190/64 scope link valid_lft forever preferred_lft forever 5: vlan4092@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:0b:ff:2e brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global vlan4092 valid_lft forever preferred_lft forever inet6 fd00:104:1::1/64 scope global valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe0b:ff2e/64 scope link valid_lft forever preferred_lft forever 6: vlan10@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:0b:ff:2e brd ff:ff:ff:ff:ff:ff inet 10.194.0.1/24 brd 10.194.0.255 scope global vlan10 valid_lft forever preferred_lft forever inet6 2a01:d0:c353:180::1/64 scope global valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe0b:ff2e/64 scope link valid_lft forever preferred_lft forever 7: vlan11@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue master servers state UP group default qlen 1000 link/ether 52:54:00:0b:ff:2e brd ff:ff:ff:ff:ff:ff inet 10.194.1.1/24 brd 10.194.1.255 scope global vlan11 valid_lft forever preferred_lft forever inet6 2a01:d0:c353:181::1/64 scope global valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe0b:ff2e/64 scope link valid_lft forever preferred_lft forever 8: vlan12@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:0b:ff:2e brd ff:ff:ff:ff:ff:ff inet 10.194.3.250/24 brd 10.194.3.255 scope global vlan12 valid_lft forever preferred_lft forever inet6 2a01:d0:c353:183::250/64 scope global valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe0b:ff2e/64 scope link valid_lft forever preferred_lft forever 9: servers: <NOARP,MASTER,UP,LOWER_UP> mtu 65536 qdisc noqueue state UP group default qlen 1000 link/ether 8e:54:d7:83:35:12 brd ff:ff:ff:ff:ff:ff

donaldsharp commented 6 years ago

This has been addressed in newer versions of code in FRR