damoonazarpazhooh
2/10/2020 - 11:11 PM

COE-865 : Lab2

COE-865 : Lab2

cat >> ping << EOF
#!/usr/bin/env bash

traceroute 10.5.2.2
traceroute 10.5.1.1
traceroute 10.5.1.2
traceroute 10.5.4.1
traceroute 10.5.4.2
traceroute 10.5.3.1
traceroute 10.5.3.2
traceroute 10.5.2.1
EOF
chmod +x ./ping
./ping
cat >> /etc/quagga/ripd.conf<<EOF
router rip
network 10.5.0.0/16
redistribute kernel
passive-interface eth0
log file /var/log/quagga/ripd.log
EOF
cat > /etc/quagga/zebra.conf <<EOF
hostname R18
password zebra
enable password zebra
log file /var/log/quagga/zebra.log
EOF