exclusive
false
! Command: show running-config
! device: vEOS-1 (vEOS, EOS-4.14.2F)
!
! boot system flash:/vEOS.swi
!
! AdvCompNet Lab 2 SDN
!
transceiver qsfp default-mode 4x10G
!
hostname veos-1
!
openflow
description SDN-OpenFlow-Lab
controller tcp:10.10.10.254:6633
bind interface Ethernet1
bind interface Ethernet2
!
spanning-tree mode mstp
!
no aaa root
!
username admin privilege 15 role network-admin secret 5 $1$S4W0XejC$69vFakMKc/k9N.nrrTiIY/
username cisco privilege 15 role network-admin secret 5 $1$rQS0W9wP$ZUzVG2XoGCCZCJopFp1aV/
!
vlan 10
!
interface Ethernet1
!
interface Ethernet2
!
interface Ethernet3
switchport access vlan 10
!
interface Management1
! ip of ma1 configured on launch
!
interface Vlan10
ip address 10.10.10.253/24
!
no ip routing
ip route 0.0.0.0 0.0.0.0 10.10.10.254
!
!
end
false
#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: client
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.20.22
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 up 10.10.20.10 netmask 255.255.255.0
exit 0
#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: server
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.20.22
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 up 10.10.20.20 netmask 255.255.255.0
exit 0
false
false
#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: controller
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" >> /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.20.22
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth2 up
dhclient -nw eth2
systemctl start dhclient@eth2.service
ifconfig eth1 up 10.0.128.2 netmask 255.255.255.252
exit 0
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh -e
ifconfig eth1 up 10.10.10.254 netmask 255.255.255.0
ifconfig eth2 up
dhclient eth2
# set default gateway to VIRL host in flat1
route del -net default
route add -net default gw 172.16.1.254
# 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
exit 0
- path: /tmp/install-odl
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh -e
mkdir /tmp/d
ebs
cd /tmp/debs
wget http://mmnet.informatik.hs-fulda.de/opendaylight-dep-debs.tar.gz
tar zxvf opendaylight-dep-debs.tar.gz
dpkg -i *.deb
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/" >/etc/profile.d/Z99-java-home.sh
# setup opendaylight controller
#################
# Hydrogen
#################
cd /tmp
wget http://mmnet.informatik.hs-fulda.de/distributions-base-0.1.1-osgipackage.zip
unzip distributions-base-0.1.1-osgipackage.zip
#################
# Lithium
#################
#wget http://mmnet.informatik.hs-fulda.de/distribution-karaf-0.3.0-Lithium.tar.gz
#tar zxf distribution-karaf-0.3.0-Lithium.tar.gz
#echo -e "feature:install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-core odl-dlux-node odl-dlux-yangui\nlogout" | ./distribution-karaf-0.3.0-Lithium/bin/karaf
#./distribution-karaf-0.3.0-Lithium/bin/start
#
#################
# LXDE
#################
# apt-get -y install midori lxde wireshark
exit 0