router1.startup 476 Bytes
Newer Older
Pedro Oliveira's avatar
Pedro Oliveira committed
1
ip addr add dev eth0 10.1.1.1/24
2
ip link set dev eth0 up
Pedro Oliveira's avatar
Pedro Oliveira committed
3 4 5 6 7 8
ip addr add dev eth1 10.2.2.1/24
ip link set dev eth1 up
ip addr add dev eth2 10.3.3.1/24
ip link set dev eth2 up
ip addr add dev eth3 10.4.4.1/24
ip link set dev eth3 up
9 10 11


#NAT for private ip's
12
#iptables -t nat -A POSTROUTING -s 0.0.0.0/0 -o eth4 -j MASQUERADE
Pedro Oliveira's avatar
Pedro Oliveira committed
13 14 15

# Zebra and OSPF
/etc/init.d/quagga restart
Pedro Oliveira's avatar
Pedro Oliveira committed
16

17
#apt-get update && apt-get --assume-yes install python3 python3-pip
Pedro Oliveira's avatar
Pedro Oliveira committed
18

19
echo VTYSH_PAGER=more > /etc/environment
20