|
|
@ -1,5 +1,5 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
|
|
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd"> |
|
|
|
<topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.95" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.95/virl.xsd"> |
|
|
|
<extensions> |
|
|
|
<entry key="management_network" type="String">exclusive</entry> |
|
|
|
</extensions> |
|
|
@ -208,7 +208,10 @@ write_files:
 |
|
|
|
dhclient eth2
 |
|
|
|
# set default gateway to VIRL host in flat1 
 |
|
|
|
route del -net default
 |
|
|
|
route add -net default gw 172.16.1.254
 |
|
|
|
route add -net default gw 172.16.1.1
 |
|
|
|
# change dns
 |
|
|
|
echo "nameserver 8.8.8.8" >/etc/resolv.conf
 |
|
|
|
echo "nameserver 8.8.4.4" >>/etc/resolv.conf
 |
|
|
|
# enable routing and NAT for 10.10.0.0/16
 |
|
|
|
sysctl -w net.ipv4.ip_forward=1
 |
|
|
|
iptables -A POSTROUTING -t nat -s 10.10.0.0/16 -o eth2 -j MASQUERADE
 |
|
|
@ -251,6 +254,7 @@ write_files:
 |
|
|
|
<interface id="0" name="eth1" ipv4="10.0.128.2" netPrefixLenV4="30"/> |
|
|
|
<interface id="1" name="eth2"/> |
|
|
|
</node> |
|
|
|
<annotations/> |
|
|
|
<connection dst="/virl:topology/virl:node[3]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[1]"/> |
|
|
|
<connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/> |
|
|
|
<connection dst="/virl:topology/virl:node[1]/virl:interface[3]" src="/virl:topology/virl:node[5]/virl:interface[1]"/> |
|
|
|