Commit dbe74e95 authored by Binh Nguyen's avatar Binh Nguyen

Add quagga:quagga username on ospf routers

parent b124eb13
......@@ -20,7 +20,7 @@ $SSH_SD "node0.$DOMAIN" "sudo ip -6 addr add $n0_1 dev $n0_1_dev"
echo "Add IPv6 addresses on node 2"
#$SSH_SD "node2.$DOMAIN" "sudo ip -6 addr add $n2_a dev $n2_a_dev"
#$SSH_SD "node2.$DOMAIN" "sudo ip -6 addr add $n2_b dev $n2_b_dev"
#$SSH_SD "node2.$DOMAIN" "sudo ip -6 addr add $n2_c dev $n2_c_dev"
$SSH_SD "node2.$DOMAIN" "sudo adduser --home /users/quagga --disabled-password --gecos \"\" quagga; sudo adduser --home /users/quagga --disabled-password --gecos \"\" quagga quagga"
$SSH_SD "node2.$DOMAIN" "sudo ip -6 addr add $n2_lb dev lo"
......@@ -29,12 +29,14 @@ echo "Add IPv6 addresses on node 3"
#$SSH_SD "node3.$DOMAIN" "sudo ip -6 addr add $n3_b dev $n3_b_dev"
#$SSH_SD "node3.$DOMAIN" "sudo ip -6 addr add $n3_d dev $n3_d_dev"
#$SSH_SD "node3.$DOMAIN" "sudo ip -6 addr add $n3_e dev $n3_e_dev"
$SSH_SD "node3.$DOMAIN" "sudo adduser --home /users/quagga --disabled-password --gecos \"\" quagga; sudo adduser --home /users/quagga --disabled-password --gecos \"\" quagga quagga"
$SSH_SD "node3.$DOMAIN" "sudo ip -6 addr add $n3_lb dev lo"
#----------node4---------
echo "Add IPv6 addresses on node 4"
#$SSH_SD "node4.$DOMAIN" "sudo ip -6 addr add $n4_d dev $n4_d_dev"
#$SSH_SD "node4.$DOMAIN" "sudo ip -6 addr add $n4_c dev $n4_c_dev"
$SSH_SD "node4.$DOMAIN" "sudo adduser --home /users/quagga --disabled-password --gecos \"\" quagga; sudo adduser --home /users/quagga --disabled-password --gecos \"\" quagga quagga"
$SSH_SD "node4.$DOMAIN" "sudo ip -6 addr add $n4_lb dev lo"
#----------node5---------
......
......@@ -4,7 +4,7 @@ OSPF="ospf6d.conf"
ETC="/usr/local/etc/"
META="hostname ospf6d@plant\npassword zebra\nservice advanced-vty\n!"
META="hostname ospf6d@plant\npassword zebra\nlog file /users/quagga/ospf.log\nservice advanced-vty\n!"
echo "!" > $OSPF
echo -e $META >> $OSPF
......
......@@ -5,8 +5,8 @@ ETC="/usr/local/etc/"
META="hostname Router\n
password zebra\n
enable password zebra\n"
#log file zebra.log\n!"
enable password zebra\n
log file /users/quagga/zebra.log\n!"
#LB="interface lo\n
LB="ip forwarding\n
line vty"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment