Use private addresses in nhrp_redundancy.
> cd tests/topotests/nhrp_redundancy
> git grep 176.16 | cut -f1 -d: | uniq | xargs -L1 sed -e 's|176.16|172.16|g' -i
> git grep 5.5.5. | cut -f1 -d: | uniq | xargs -L1 sed -e 's|5.5.5.|10.5.5.|g' -i
> git grep 4.4.4 | cut -f1 -d: | uniq | xargs -L1 sed -e 's|4.4.4.|10.4.4.|g' -i
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
interface host-eth0
- ip address 4.4.4.7/24
+ ip address 10.4.4.7/24
!
-ip route 0.0.0.0/0 4.4.4.4
+ip route 0.0.0.0/0 10.4.4.4
{
"interface": "nhc1-gre0",
"type": "nhs",
- "protocol": "176.16.1.2",
+ "protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
{
"interface": "nhc1-gre0",
"type": "local",
- "protocol": "176.16.1.4",
+ "protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
{
"interface": "nhc1-gre0",
"type": "nhs",
- "protocol": "176.16.1.3",
+ "protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
{
"interface": "nhc1-gre0",
"type": "nhs",
- "protocol": "176.16.1.1",
+ "protocol": "172.16.1.1",
"nbma": "192.168.1.1",
"claimed_nbma": "192.168.1.1",
"used": false,
{
"interface": "nhc1-gre0",
"type": "nhs",
- "protocol": "176.16.1.2",
+ "protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
{
"interface": "nhc1-gre0",
"type": "local",
- "protocol": "176.16.1.4",
+ "protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
{
"interface": "nhc1-gre0",
"type": "nhs",
- "protocol": "176.16.1.3",
+ "protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
{
- "176.16.1.1\/32": [
+ "172.16.1.1\/32": [
{
- "prefix": "176.16.1.1\/32",
+ "prefix": "172.16.1.1\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.2\/32": [
+ "172.16.1.2\/32": [
{
- "prefix": "176.16.1.2\/32",
+ "prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.3\/32": [
+ "172.16.1.3\/32": [
{
- "prefix": "176.16.1.3\/32",
+ "prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
{
- "176.16.1.1\/32": null,
- "176.16.1.2\/32": [
+ "172.16.1.1\/32": null,
+ "172.16.1.2\/32": [
{
- "prefix": "176.16.1.2\/32",
+ "prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.3\/32": [
+ "172.16.1.3\/32": [
{
- "prefix": "176.16.1.3\/32",
+ "prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
{
- "5.5.5.0\/24": [
+ "10.5.5.0\/24": [
{
- "prefix": "5.5.5.0\/24",
+ "prefix": "10.5.5.0\/24",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
"nexthops": [
{
"fib": true,
- "ip": "176.16.1.5",
+ "ip": "172.16.1.5",
"afi": "ipv4",
"interfaceName": "nhc1-gre0",
"active": true
]
}
],
- "176.16.1.1\/32": [
+ "172.16.1.1\/32": [
{
- "prefix": "176.16.1.1\/32",
+ "prefix": "172.16.1.1\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.2\/32": [
+ "172.16.1.2\/32": [
{
- "prefix": "176.16.1.2\/32",
+ "prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.3\/32": [
+ "172.16.1.3\/32": [
{
- "prefix": "176.16.1.3\/32",
+ "prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.5\/32": [
+ "172.16.1.5\/32": [
{
- "prefix": "176.16.1.5\/32",
+ "prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
{
- "5.5.5.0\/24": [
+ "10.5.5.0\/24": [
{
- "prefix": "5.5.5.0\/24",
+ "prefix": "10.5.5.0\/24",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
"nexthops": [
{
"fib": true,
- "ip": "176.16.1.5",
+ "ip": "172.16.1.5",
"afi": "ipv4",
"interfaceName": "nhc1-gre0",
"active": true
]
}
],
- "176.16.1.1\/32": null,
- "176.16.1.2\/32": [
+ "172.16.1.1\/32": null,
+ "172.16.1.2\/32": [
{
- "prefix": "176.16.1.2\/32",
+ "prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.3\/32": [
+ "172.16.1.3\/32": [
{
- "prefix": "176.16.1.3\/32",
+ "prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.5\/32": [
+ "172.16.1.5\/32": [
{
- "prefix": "176.16.1.5\/32",
+ "prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
"table":[
{
"type":"dynamic",
- "prefix":"5.5.5.0/24",
- "via":"176.16.1.5"
+ "prefix":"10.5.5.0/24",
+ "via":"172.16.1.5"
}
]
}
!
ip route 192.168.1.0/24 192.168.2.6
interface nhc1-gre0
- ip address 176.16.1.4/32
+ ip address 172.16.1.4/32
no link-detect
ipv6 nd suppress-ra
!
interface nhc1-eth1
- ip address 4.4.4.4/24
+ ip address 10.4.4.4/24
!
-ip route 0.0.0.0/0 176.16.1.1 50
-ip route 0.0.0.0/0 176.16.1.2 60
-ip route 0.0.0.0/0 176.16.1.3 70
\ No newline at end of file
+ip route 0.0.0.0/0 172.16.1.1 50
+ip route 0.0.0.0/0 172.16.1.2 60
+ip route 0.0.0.0/0 172.16.1.3 70
\ No newline at end of file
{
"interface": "nhc2-gre0",
"type": "nhs",
- "protocol": "176.16.1.2",
+ "protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
{
"interface": "nhc2-gre0",
"type": "nhs",
- "protocol": "176.16.1.3",
+ "protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
{
"interface": "nhc2-gre0",
"type": "nhs",
- "protocol": "176.16.1.1",
+ "protocol": "172.16.1.1",
"nbma": "192.168.1.1",
"claimed_nbma": "192.168.1.1",
"used": false,
{
"interface": "nhc2-gre0",
"type": "local",
- "protocol": "176.16.1.5",
+ "protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
{
"interface": "nhc2-gre0",
"type": "nhs",
- "protocol": "176.16.1.2",
+ "protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
{
"interface": "nhc2-gre0",
"type": "nhs",
- "protocol": "176.16.1.3",
+ "protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
{
"interface": "nhc2-gre0",
"type": "local",
- "protocol": "176.16.1.5",
+ "protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
{
- "176.16.1.1\/32": [
+ "172.16.1.1\/32": [
{
- "prefix": "176.16.1.1\/32",
+ "prefix": "172.16.1.1\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.2\/32": [
+ "172.16.1.2\/32": [
{
- "prefix": "176.16.1.2\/32",
+ "prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.3\/32": [
+ "172.16.1.3\/32": [
{
- "prefix": "176.16.1.3\/32",
+ "prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
{
- "176.16.1.1\/32": null,
- "176.16.1.2\/32": [
+ "172.16.1.1\/32": null,
+ "172.16.1.2\/32": [
{
- "prefix": "176.16.1.2\/32",
+ "prefix": "172.16.1.2\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.3\/32": [
+ "172.16.1.3\/32": [
{
- "prefix": "176.16.1.3\/32",
+ "prefix": "172.16.1.3\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
!
ip route 192.168.1.0/24 192.168.2.6
interface nhc2-gre0
- ip address 176.16.1.5/32
+ ip address 172.16.1.5/32
no link-detect
ipv6 nd suppress-ra
!
interface nhc2-eth1
- ip address 5.5.5.5/24
+ ip address 10.5.5.5/24
!
-ip route 0.0.0.0/0 176.16.1.1 50
-ip route 0.0.0.0/0 176.16.1.2 60
-ip route 0.0.0.0/0 176.16.1.3 70
+ip route 0.0.0.0/0 172.16.1.1 50
+ip route 0.0.0.0/0 172.16.1.2 60
+ip route 0.0.0.0/0 172.16.1.3 70
{
"interface": "nhs1-gre0",
"type": "dynamic",
- "protocol": "176.16.1.4",
+ "protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
{
"interface": "nhs1-gre0",
"type": "local",
- "protocol": "176.16.1.1",
+ "protocol": "172.16.1.1",
"nbma": "192.168.1.1",
"claimed_nbma": "192.168.1.1",
"used": false,
{
"interface": "nhs1-gre0",
"type": "dynamic",
- "protocol": "176.16.1.5",
+ "protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
{
- "176.16.1.4\/32": [
+ "172.16.1.4\/32": [
{
- "prefix": "176.16.1.4\/32",
+ "prefix": "172.16.1.4\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.5\/32": [
+ "172.16.1.5\/32": [
{
- "prefix": "176.16.1.5\/32",
+ "prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
!
ip route 192.168.2.0/24 192.168.1.6
interface nhs1-gre0
- ip address 176.16.1.1/32
+ ip address 172.16.1.1/32
no link-detect
ipv6 nd suppress-ra
!
-ip route 4.4.4.0/24 176.16.1.4
-ip route 5.5.5.0/24 176.16.1.5
+ip route 10.4.4.0/24 172.16.1.4
+ip route 10.5.5.0/24 172.16.1.5
{
"interface": "nhs2-gre0",
"type": "local",
- "protocol": "176.16.1.2",
+ "protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
{
"interface": "nhs2-gre0",
"type": "dynamic",
- "protocol": "176.16.1.4",
+ "protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
{
"interface": "nhs2-gre0",
"type": "dynamic",
- "protocol": "176.16.1.5",
+ "protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
{
"interface": "nhs2-gre0",
"type": "local",
- "protocol": "176.16.1.2",
+ "protocol": "172.16.1.2",
"nbma": "192.168.1.2",
"claimed_nbma": "192.168.1.2",
"used": false,
{
"interface": "nhs2-gre0",
"type": "dynamic",
- "protocol": "176.16.1.4",
+ "protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
{
"interface": "nhs2-gre0",
"type": "dynamic",
- "protocol": "176.16.1.5",
+ "protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
{
- "176.16.1.4\/32": [
+ "172.16.1.4\/32": [
{
- "prefix": "176.16.1.4\/32",
+ "prefix": "172.16.1.4\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.5\/32": [
+ "172.16.1.5\/32": [
{
- "prefix": "176.16.1.5\/32",
+ "prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
{
- "176.16.1.4\/32": [
+ "172.16.1.4\/32": [
{
- "prefix": "176.16.1.4\/32",
+ "prefix": "172.16.1.4\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.5\/32": [
+ "172.16.1.5\/32": [
{
- "prefix": "176.16.1.5\/32",
+ "prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
!
ip route 192.168.2.0/24 192.168.1.6
interface nhs2-gre0
- ip address 176.16.1.2/32
+ ip address 172.16.1.2/32
no link-detect
ipv6 nd suppress-ra
!
-ip route 4.4.4.0/24 176.16.1.4
-ip route 5.5.5.0/24 176.16.1.5
+ip route 10.4.4.0/24 172.16.1.4
+ip route 10.5.5.0/24 172.16.1.5
{
"interface": "nhs3-gre0",
"type": "dynamic",
- "protocol": "176.16.1.4",
+ "protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
{
"interface": "nhs3-gre0",
"type": "local",
- "protocol": "176.16.1.3",
+ "protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
{
"interface": "nhs3-gre0",
"type": "dynamic",
- "protocol": "176.16.1.5",
+ "protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
{
"interface": "nhs3-gre0",
"type": "dynamic",
- "protocol": "176.16.1.4",
+ "protocol": "172.16.1.4",
"nbma": "192.168.2.4",
"claimed_nbma": "192.168.2.4",
"used": false,
{
"interface": "nhs3-gre0",
"type": "local",
- "protocol": "176.16.1.3",
+ "protocol": "172.16.1.3",
"nbma": "192.168.1.3",
"claimed_nbma": "192.168.1.3",
"used": false,
{
"interface": "nhs3-gre0",
"type": "dynamic",
- "protocol": "176.16.1.5",
+ "protocol": "172.16.1.5",
"nbma": "192.168.2.5",
"claimed_nbma": "192.168.2.5",
"used": false,
{
- "176.16.1.4\/32": [
+ "172.16.1.4\/32": [
{
- "prefix": "176.16.1.4\/32",
+ "prefix": "172.16.1.4\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.5\/32": [
+ "172.16.1.5\/32": [
{
- "prefix": "176.16.1.5\/32",
+ "prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
{
- "176.16.1.4\/32": [
+ "172.16.1.4\/32": [
{
- "prefix": "176.16.1.4\/32",
+ "prefix": "172.16.1.4\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
]
}
],
- "176.16.1.5\/32": [
+ "172.16.1.5\/32": [
{
- "prefix": "176.16.1.5\/32",
+ "prefix": "172.16.1.5\/32",
"protocol": "nhrp",
"vrfId": 0,
"vrfName": "default",
!
ip route 192.168.2.0/24 192.168.1.6
interface nhs3-gre0
- ip address 176.16.1.3/32
+ ip address 172.16.1.3/32
no link-detect
ipv6 nd suppress-ra
!
-ip route 4.4.4.0/24 176.16.1.4
-ip route 5.5.5.0/24 176.16.1.5
\ No newline at end of file
+ip route 10.4.4.0/24 172.16.1.4
+ip route 10.5.5.0/24 172.16.1.5
\ No newline at end of file
];
sw3 [
shape=oval,
- label="sw3\n4.4.4.0/24",
+ label="sw3\n10.4.4.0/24",
fillcolor="#d0e0d0",
style=filled,
];
sw4 [
shape=oval,
- label="sw4\n5.5.5.0/24",
+ label="sw4\n10.5.5.0/24",
fillcolor="#d0e0d0",
style=filled,
];
+------------+ | +-------+----+ +------+-----+ |
| | | | | | | |
| | +--------+ | | | |
-| Host |.7 | | NHC 1 | | NHC 2 +-----+5.5.5.0/24
+| Host |.7 | | NHC 1 | | NHC 2 +-----+10.5.5.0/24
| +---------+ | | | | |
+------------+ | +------------+ +------------+ |
| |
- 4.4.4.0/24
+ 10.4.4.0/24
"""
# Save the Current Working Directory to find configuration files.
# Test connectivity from 1 NHRP server to all clients
nhs1 = tgen.gears["nhs1"]
- logger.info("Check Ping IPv4 from nhs1 to nhc1 = 176.16.1.4)")
- output = nhs1.run("ping 176.16.1.4 -f -c 1000")
+ logger.info("Check Ping IPv4 from nhs1 to nhc1 = 172.16.1.4)")
+ output = nhs1.run("ping 172.16.1.4 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from nhs1 to nhc1 should be ok"
else:
logger.info("Check Ping IPv4 from nhs1 to nhc1 OK")
- logger.info("Check Ping IPv4 from nhs1 to nhc2 = 176.16.1.5)")
- output = nhs1.run("ping 176.16.1.5 -f -c 1000")
+ logger.info("Check Ping IPv4 from nhs1 to nhc2 = 172.16.1.5)")
+ output = nhs1.run("ping 172.16.1.5 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from nhs1 to nhc2 should be ok"
# Test connectivity from 1 NHRP client to all servers
nhc1 = tgen.gears["nhc1"]
- logger.info("Check Ping IPv4 from nhc1 to nhs1 = 176.16.1.1)")
- output = nhc1.run("ping 176.16.1.1 -f -c 1000")
+ logger.info("Check Ping IPv4 from nhc1 to nhs1 = 172.16.1.1)")
+ output = nhc1.run("ping 172.16.1.1 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from nhc1 to nhs1 should be ok"
else:
logger.info("Check Ping IPv4 from nhc1 to nhs1 OK")
- logger.info("Check Ping IPv4 from nhc1 to nhs2 = 176.16.1.2)")
- output = nhc1.run("ping 176.16.1.2 -f -c 1000")
+ logger.info("Check Ping IPv4 from nhc1 to nhs2 = 172.16.1.2)")
+ output = nhc1.run("ping 172.16.1.2 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from nhc1 to nhs2 should be ok"
else:
logger.info("Check Ping IPv4 from nhc1 to nhs2 OK")
- logger.info("Check Ping IPv4 from nhc1 to nhs3 = 176.16.1.3)")
- output = nhc1.run("ping 176.16.1.3 -f -c 1000")
+ logger.info("Check Ping IPv4 from nhc1 to nhs3 = 172.16.1.3)")
+ output = nhc1.run("ping 172.16.1.3 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from nhc1 to nhs3 should be ok"
"""
tgen = get_topogen()
host = tgen.gears["host"]
- logger.info("Check Ping IPv4 from host to nhc2 = 5.5.5.5")
+ logger.info("Check Ping IPv4 from host to nhc2 = 10.5.5.5")
- output = host.run("ping 5.5.5.5 -f -c 1000")
+ output = host.run("ping 10.5.5.5 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from host to nhc2 should be ok"
# Initiate shortcut by pinging between clients
host = tgen.gears["host"]
- logger.info("Check Ping IPv4 from host to nhc2 via shortcut = 5.5.5.5")
+ logger.info("Check Ping IPv4 from host to nhc2 via shortcut = 10.5.5.5")
- output = host.run("ping 5.5.5.5 -f -c 1000")
+ output = host.run("ping 10.5.5.5 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from host to nhc2 via shortcut should be ok"
# Verify shortcut is still active
host = tgen.gears["host"]
- logger.info("Check Ping IPv4 from host to nhc2 via shortcut = 5.5.5.5")
+ logger.info("Check Ping IPv4 from host to nhc2 via shortcut = 10.5.5.5")
- output = host.run("ping 5.5.5.5 -f -c 1000")
+ output = host.run("ping 10.5.5.5 -f -c 1000")
logger.info(output)
if "1000 packets transmitted, 1000 received" not in output:
assertmsg = "expected ping IPv4 from host to nhc2 via shortcut should be ok"