blob: c6878fe589a0beaa00021ba8bdfa11496903b932 [file] [log] [blame]
Yi Tsengbaab4242018-02-11 16:50:03 -08001#!/bin/sh
2
3# Reset VLANs
Yi Tsengbc6bfe52018-02-12 18:21:53 -08004vconfig rem eth0.1
Yi Tsengbaab4242018-02-11 16:50:03 -08005
6set -e -x
7
8# Set VLANs
Yi Tsengbc6bfe52018-02-12 18:21:53 -08009vconfig add eth0 1
Yi Tsengbaab4242018-02-11 16:50:03 -080010
Yi Tsengbc6bfe52018-02-12 18:21:53 -080011ifconfig eth0 up
Yi Tsengbaab4242018-02-11 16:50:03 -080012
13# Internal (for management and MME2)
Yi Tsengbc6bfe52018-02-12 18:21:53 -080014ifconfig eth0.1 up
15ifconfig eth0.1 10.6.0.200/24 up
16
17# Slice1 (Leaf1)
18ip addr add 118.0.0.10/24 dev eth0
19ip addr add 119.0.0.10/24 dev eth0
20
21# route to slice 2 and ARM (140.0.0.2/24 and 150.0.0.10/24)
Yi Tseng7c4b9942018-02-18 22:29:48 -080022ip route add 0.0.0.0/0 via 118.0.0.254