blob: 4fc6b32598c135805f694e73f0e7ca698340b680 [file] [log] [blame]
Yi Tsengbaab4242018-02-11 16:50:03 -08001#!/bin/sh
2
3# Reset VLANs
4vconfig rem eth0.100
5vconfig rem eth0.200
6
7set -e -x
8
9# Set VLANs
10vconfig add eth0 100
11vconfig add eth0 200
12
13# Slice1 (Leaf1)
14ifconfig eth0.100 up
15ip addr add 118.0.0.10/24 dev eth0.100
16ip addr add 119.0.0.10/24 dev eth0.100
17
18# Slice2 (Leaf2)
19ifconfig eth0.200 up
20ifconfig eth0.200 hw ether 00:aa:00:00:00:02
21ipaddr add 140.0.0.10/24 dev eth0.200
22
23# Internal (for management and MME2)
24ifconfig eth0 10.6.0.200/24 up