Published 6月 08, 2018 by with 0 comment

CCIE-RS Lab IOU Lession 5: IOU to real Ethernet NIC


In this lab, I run 2 IOU routers in the VMWare. I follow the InternetworkPro website's introducation to connect IOU with my real Networks Interface Card (NIC).
So, my IOU routers can ping my real PC's IP address and default gateway.

Step 1. Creating the Perl "iou2net.pl" and then changing that permissions.


Step 2. Installing the perl module.




Step 3. Creating the directory for NETMAP file and then changing that permissions.


My NETMAP file:
100:1/0             110:1/0
100:0/0@peter-virtual-machine     999:0/0@peter-virtual-machine

Step 4. Creating the shell script "IOU_Lession5.sh" and then changing that permissions.


My IOU_Lession5.sh:
#!/bin/bash
#
# Creating 2 routers:
# R100 (Port #2001): e0/0-3 s1/0-3
# R110 (Port #2002): e0/0-3 s1/0-3
#
# History:
# 2011/02/14 by Happy Peter
# http://blog.xuite.net/juilin77/happy
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#
#NETMAP Environment Variable
export NETIO_NETMAP=/home/peter/iou/netmap/lab02/NETMAP
#R100
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2001 -- -e 1 -s 1 100 &
sleep 5s
#R110
/home/peter/iou/wrapper-linux -m ~/iou/i86bi_linux-adventerprisek9-ms -p 2002 -- -e 1 -s 1 110 &
sleep 5s
#
unset NETIO_NETMAP
#Starting iou2net.sh
sudo sh /home/peter/iou/netmap/lab02/iou2net.sh
#Checking
exit 0

Step 5. Creating the shell script "iou2net.sh" and then changing that permissions.


My iou2net.sh:
#!/bin/bash
#
# Creating 1 pseudo router:
# R999 eth0 -to- IOU router
#
# History:
# 2011/02/15 by Happy Peter
# http://blog.xuite.net/juilin77/happy
/home/peter/iou/iou2net.pl -i eth0 -n /home/peter/iou/netmap/lab02/NETMAP -p 999 &


Step 6. Running the Shell Script (root).


Step 7. I run RIP in 2 IOU routers and checking the routing.
R100 ping R110. Working
R100 ping real NIC IP address. Working
R100 ping real network gateway IP address. Working


Step 8. Stop the IOU (root)



Reference:
evilrouters.net http://evilrouters.net/
InternetworkPro http://inetpro.org/wiki/Connect_IOU_with_real_networks_or_dynamips
鳥哥的 Linux 私房菜 http://linux.vbird.org/
Thanks for "Le****e sir" (真。牛人)


最初發表 / 最後更新: 2011.02.16 / 2018.06.08

0 comments:

張貼留言