running CORE—Common Open Research Emulator—in debian
来源:互联网 发布:网络兼职赚钱有哪些 编辑:程序博客网 时间:2024/04/30 10:27
http://poldonet.blogspot.com/2014/01/enlab1.html
verify the correct operation of the emulator core on debian:
files :
# ls /etc/core/ -l
total 12
-rw-r--r-- 1 root root 1419 Aug 23 18:30 core.conf
-rw-r--r-- 1 root root 1094 Oct 30 12:03 perflogserver.conf
-rw-r--r-- 1 root root 1569 Nov 30 2012 xen.conf
# ls /etc/quagga/ -l
total 8
lrwxrwxrwx 1 root root 33 Jan 17 11:15 babeld.conf -> /usr/local/etc/quagga/babeld.conf
lrwxrwxrwx 1 root root 31 Jan 17 11:15 bgpd.conf -> /usr/local/etc/quagga/bgpd.conf
-rw-r--r-- 1 root root 998 Jan 17 10:59 daemons
-rw-r--r-- 1 root root 945 Nov 26 01:32 debian.conf
lrwxrwxrwx 1 root root 32 Jan 17 11:15 isisd.conf -> /usr/local/etc/quagga/isisd.conf
lrwxrwxrwx 1 root root 33 Jan 17 11:15 ospf6d.conf -> /usr/local/etc/quagga/ospf6d.conf
lrwxrwxrwx 1 root root 32 Jan 17 11:15 ospfd.conf -> /usr/local/etc/quagga/ospfd.conf
lrwxrwxrwx 1 root root 33 Jan 16 21:23 Quagga.conf -> /usr/local/etc/quagga/Quagga.conf
lrwxrwxrwx 1 root root 31 Jan 17 11:15 ripd.conf -> /usr/local/etc/quagga/ripd.conf
lrwxrwxrwx 1 root root 33 Jan 17 11:15 ripngd.conf -> /usr/local/etc/quagga/ripngd.conf
lrwxrwxrwx 1 root root 32 Jan 16 21:23 vtysh.conf -> /usr/local/etc/quagga/vtysh.conf
lrwxrwxrwx 1 root root 32 Jan 17 11:15 zebra.conf -> /usr/local/etc/quagga/zebra.conf
# ls -l /usr/local/etc/quagga/
total 40
-rw-r--r-- 1 root staff 655 Jan 17 11:12 babeld.conf
-rw-r--r-- 1 root staff 2801 Jan 17 11:12 bgpd.conf
-rw-r--r-- 1 root staff 805 Jan 17 11:12 isisd.conf
-rw-r--r-- 1 root staff 1110 Jan 17 11:12 ospf6d.conf
-rw-r--r-- 1 root staff 182 Jan 17 11:12 ospfd.conf
-rw-r--r-- 1 root staff 39 Jan 17 11:19 Quagga.conf
-rw-r--r-- 1 root staff 422 Jan 17 11:12 ripd.conf
-rw-r--r-- 1 root staff 390 Jan 17 11:12 ripngd.conf
-rw-r--r-- 1 root staff 126 Jan 17 11:12 vtysh.conf
-rw-r--r-- 1 root staff 385 Jan 17 11:18 zebra.conf
here you find some exemples files of configuration
# ls /usr/share/core/icons/
normal svg tiny
# ls /usr/share/doc/core-network
core-network/ core-network-daemon/ core-network-gui/
# ls /usr/share/doc/core-network-gui/examples/configs/sample*
/usr/share/doc/core-network-gui/examples/configs/sample10-kitchen-sink.imn
/usr/share/doc/core-network-gui/examples/configs/sample1-bg.gif
/usr/share/doc/core-network-gui/examples/configs/sample1.imn
/usr/share/doc/core-network-gui/examples/configs/sample1.scen
/usr/share/doc/core-network-gui/examples/configs/sample2-ssh.imn
/usr/share/doc/core-network-gui/examples/configs/sample3-bgp.imn
/usr/share/doc/core-network-gui/examples/configs/sample4-bg.jpg
/usr/share/doc/core-network-gui/examples/configs/sample4-nrlsmf.imn
/usr/share/doc/core-network-gui/examples/configs/sample4.scen
/usr/share/doc/core-network-gui/examples/configs/sample5-mgen.imn
/usr/share/doc/core-network-gui/examples/configs/sample6-emane-rfpipe.imn
/usr/share/doc/core-network-gui/examples/configs/sample7-emane-ieee80211abg.imn
/usr/share/doc/core-network-gui/examples/configs/sample8-ipsec-service.imn
/usr/share/doc/core-network-gui/examples/configs/sample9-vpn.imn
ls /usr/share/doc/quagga/examples/
babeld.conf.sample bgpd.conf.sample2 ospf6d.conf.sample ripd.conf.sample vtysh.conf.sample
bgpd.conf.sample isisd.conf.sample ospfd.conf.sample ripngd.conf.sample zebra.conf.sample
services to start:
/etc/init.d/core-daemon start
/etc/init.d/quagga start
process:
4937 ? Sl 0:00 /usr/bin/python /usr/sbin/core-daemon -d
4959 ? Ss 0:00 /usr/lib/quagga/zebra --daemon -A 127.0.0.1
4963 ? Ss 0:00 /usr/lib/quagga/bgpd --daemon -A 127.0.0.1
4967 ? Ss 0:00 /usr/lib/quagga/ripd --daemon -A 127.0.0.1
4971 ? Ss 0:00 /usr/lib/quagga/ripngd --daemon -A ::1
4975 ? Ss 0:00 /usr/lib/quagga/ospfd --daemon -A 127.0.0.1
4979 ? Ss 0:00 /usr/lib/quagga/ospf6d --daemon -A ::1
4983 ? Ss 0:00 /usr/lib/quagga/isisd --daemon -A 127.0.0.1
4987 ? Ss 0:00 /usr/lib/quagga/babeld --daemon -A 127.0.0.1
ports :
tcp 0 0 127.0.0.1:2601 0.0.0.0:* LISTEN 120 18033 4959/zebra
tcp 0 0 127.0.0.1:2602 0.0.0.0:* LISTEN 120 18045 4967/ripd
tcp 0 0 127.0.0.1:2604 0.0.0.0:* LISTEN 120 18057 4975/ospfd
tcp 0 0 127.0.0.1:2605 0.0.0.0:* LISTEN 120 18038 4963/bgpd
tcp 0 0 127.0.0.1:2608 0.0.0.0:* LISTEN 120 16744 4983/isisd
tcp 0 0 127.0.0.1:2609 0.0.0.0:* LISTEN 120 18069 4987/babeld
udp 0 0 127.0.0.1:4038 0.0.0.0:* 0 50773 4937/python
tcp 0 0 127.0.0.1:4038 0.0.0.0:* LISTEN 0 50768 4937/python
logs:
ls -l /var/log/core-daemon.log
-rw-r--r-- 1 root root 68435 Jan 22 10:37 /var/log/core-daemon.log
ls -l /var/log/quagga/
-rw-r----- 1 quagga quaggavty 0 Jan 22 09:31 zebra.log
/var/log/syslog
in the /home of user start core, you can customize default parameters:
> ls .core/ -l
total 28
drwxr-xr-x 2 leopoldo leopoldo 4096 Jan 20 13:47 configs
drwxr-xr-x 2 leopoldo leopoldo 4096 Jan 9 14:23 myservices
-rw-r--r-- 1 leopoldo leopoldo 754 Jan 16 22:03 nodes.conf
-rw-r--r-- 1 leopoldo leopoldo 362 Jan 20 11:29 plugins.conf
-rw-r--r-- 1 leopoldo leopoldo 887 Jan 20 15:35 prefs.conf
-rw-r--r-- 1 leopoldo leopoldo 46 Jan 9 14:23 servers.conf
-rw-r--r-- 1 leopoldo leopoldo 578 Jan 9 14:23 widgets.conf
start core network emulator and add a router node fram barr on left, click left to add router
click right on node, configure, button services, click on ip_froward modify line as show below and click on ssh to enable it
click rigth on router copy and paste anothers routers
now we add the connection among hosts, pick line from barr on left
click on host to another host. Core adds automaic ip address by default files:
starts in running mode, start shell click right on node, shell window, vtysh, push q to get line cmd
n1# ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_req=1 ttl=64 time=0.060 ms
64 bytes from 10.0.0.2: icmp_req=2 ttl=64 time=0.042 ms
64 bytes from 10.0.0.2: icmp_req=3 ttl=64 time=0.063 ms
64 bytes from 10.0.0.2: icmp_req=4 ttl=64 time=0.069 ms
what core virtualizes?
are virtualized our host process that quagga
6191 ? S 0:00 /usr/sbin/vnoded -v -c /tmp/pycore.10017/n1 -l /tmp/pycore.10017/n1.log -p /tmp/pycore.10017/n1.pid -C /tm
6317 ? Ss 0:00 \_ /usr/lib/quagga/zebra -u root -g root -d
6370 ? Ss 0:00 \_ /usr/lib/quagga/ospf6d -u root -g root -d
6371 ? Ss 0:00 \_ /usr/lib/quagga/ospfd -u root -g root -d
6381 ? Ss 0:00 \_ /usr/sbin/sshd -f /etc/ssh/sshd_config
6394 pts/4 Ss+ 0:00 \_ vtysh
6201 ? S 0:00 /usr/sbin/vnoded -v -c /tmp/pycore.10017/n2 -l /tmp/pycore.10017/n2.log -p /tmp/pycore.10017/n2.pid -C /tm
6360 ? Ss 0:00 \_ /usr/lib/quagga/zebra -u root -g root -d
6375 ? Ss 0:00 \_ /usr/lib/quagga/ospf6d -u root -g root -d
6376 ? Ss 0:00 \_ /usr/lib/quagga/ospfd -u root -g root -d
6380 ? Ss 0:00 \_ /usr/sbin/sshd -f /etc/ssh/sshd_config
and are created some files under /tmp. they are ours hosts
root@debian8:~#
# ls -l /tmp/pycore.10017/
total 80
srw-rw-rw- 1 root root 0 Jan 22 11:43 n1
drwxrwxrwx 8 root root 4096 Jan 22 11:43 n1.conf
-rw-r--r-- 1 root root 17358 Jan 22 11:48 n1.log
-rw-rw-rw- 1 root root 5 Jan 22 11:43 n1.pid
-rw-r--r-- 1 leopoldo leopoldo 11 Jan 22 11:43 n1.xy
srw-rw-rw- 1 root root 0 Jan 22 11:43 n2
drwxrwxrwx 8 root root 4096 Jan 22 11:43 n2.conf
-rw-r--r-- 1 root root 17546 Jan 22 11:49 n2.log
-rw-rw-rw- 1 root root 5 Jan 22 11:43 n2.pid
-rw-r--r-- 1 leopoldo leopoldo 11 Jan 22 11:43 n2.xy
-rw-rw-rw- 1 root root 137 Jan 22 11:43 nodes
-rw-rw-rw- 1 root root 13 Jan 22 11:43 servers
-rw-rw-rw- 1 root root 10 Jan 22 11:43 state
-rw-r--r-- 1 leopoldo leopoldo 2005 Jan 22 11:43 thumb.jpg
here one node:
# file /tmp/pycore.10017/n2*
/tmp/pycore.10017/n2: socket
/tmp/pycore.10017/n2.conf: directory
/tmp/pycore.10017/n2.log: ASCII text
/tmp/pycore.10017/n2.pid: ASCII text
/tmp/pycore.10017/n2.xy: ASCII text
# ls -l /tmp/pycore.10017/n2.conf
total 36
drwxrwxrwx 2 root root 4096 Jan 22 11:43 etc.ssh
-rw-r--r-- 1 root root 290 Jan 22 11:43 ipforward.sh
-rw-r--r-- 1 root root 2507 Jan 22 11:43 quaggaboot.sh
-rw-r--r-- 1 root root 234 Jan 22 11:43 startsshd.sh
drwxrwxrwx 2 root root 4096 Jan 22 11:43 usr.local.etc.quagga
drwxrwxrwx 2 root root 4096 Jan 22 11:43 var.log
drwxrwxrwx 5 root root 4096 Jan 22 11:43 var.run
drwxrwxrwx 2 root root 4096 Jan 22 11:43 var.run.quagga
drw-r-xr-x 2 root root 4096 Jan 22 11:43 var.run.sshd
from menù widgets we can see active process:
from shell:
root@n1:/tmp/pycore.10017/n1.conf#
# ps fax
PID TTY STAT TIME COMMAND
1 ? S 0:00 /usr/sbin/vnoded -v -c /tmp/pycore.10017/n1 -l /tmp/p
52 ? Ss 0:00 /usr/lib/quagga/zebra -u root -g root -d
60 ? Ss 0:00 /usr/lib/quagga/ospf6d -u root -g root -d
61 ? Ss 0:00 /usr/lib/quagga/ospfd -u root -g root -d
65 ? Ss 0:00 /usr/sbin/sshd -f /etc/ssh/sshd_config
88 pts/4 Ss 0:00 /bin/bash
we add somes nodes pc from barr on left. Activate ssh like this
from menù widgets we can see routing:
from shell:
Hello, this is Quagga (version 0.99.22.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
n2# sh ip route
O>* 10.0.0.0/24 [110/20] via 10.0.1.1, eth0, 00:06:35
O 10.0.1.0/24 [110/10] is directly connected, eth0, 00:07:30
C>* 10.0.1.0/24 is directly connected, eth0
O 10.0.2.0/24 [110/10] is directly connected, eth1, 00:07:30
C>* 10.0.2.0/24 is directly connected, eth1
O>* 10.0.3.0/24 [110/20] via 10.0.2.2, eth1, 00:06:40
C>* 127.0.0.0/8 is directly connected, lo
we can connect with ssh:
root@n4:~#
# ip a
172: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
175: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:00:00:aa:00:00 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.20/24 scope global eth0
if we get somes errors, reset the file
:>.ssh/known_hosts
under the user's home who started Core
files :
# ls /etc/core/ -l
total 12
-rw-r--r-- 1 root root 1419 Aug 23 18:30 core.conf
-rw-r--r-- 1 root root 1094 Oct 30 12:03 perflogserver.conf
-rw-r--r-- 1 root root 1569 Nov 30 2012 xen.conf
# ls /etc/quagga/ -l
total 8
lrwxrwxrwx 1 root root 33 Jan 17 11:15 babeld.conf -> /usr/local/etc/quagga/babeld.conf
lrwxrwxrwx 1 root root 31 Jan 17 11:15 bgpd.conf -> /usr/local/etc/quagga/bgpd.conf
-rw-r--r-- 1 root root 998 Jan 17 10:59 daemons
-rw-r--r-- 1 root root 945 Nov 26 01:32 debian.conf
lrwxrwxrwx 1 root root 32 Jan 17 11:15 isisd.conf -> /usr/local/etc/quagga/isisd.conf
lrwxrwxrwx 1 root root 33 Jan 17 11:15 ospf6d.conf -> /usr/local/etc/quagga/ospf6d.conf
lrwxrwxrwx 1 root root 32 Jan 17 11:15 ospfd.conf -> /usr/local/etc/quagga/ospfd.conf
lrwxrwxrwx 1 root root 33 Jan 16 21:23 Quagga.conf -> /usr/local/etc/quagga/Quagga.conf
lrwxrwxrwx 1 root root 31 Jan 17 11:15 ripd.conf -> /usr/local/etc/quagga/ripd.conf
lrwxrwxrwx 1 root root 33 Jan 17 11:15 ripngd.conf -> /usr/local/etc/quagga/ripngd.conf
lrwxrwxrwx 1 root root 32 Jan 16 21:23 vtysh.conf -> /usr/local/etc/quagga/vtysh.conf
lrwxrwxrwx 1 root root 32 Jan 17 11:15 zebra.conf -> /usr/local/etc/quagga/zebra.conf
# ls -l /usr/local/etc/quagga/
total 40
-rw-r--r-- 1 root staff 655 Jan 17 11:12 babeld.conf
-rw-r--r-- 1 root staff 2801 Jan 17 11:12 bgpd.conf
-rw-r--r-- 1 root staff 805 Jan 17 11:12 isisd.conf
-rw-r--r-- 1 root staff 1110 Jan 17 11:12 ospf6d.conf
-rw-r--r-- 1 root staff 182 Jan 17 11:12 ospfd.conf
-rw-r--r-- 1 root staff 39 Jan 17 11:19 Quagga.conf
-rw-r--r-- 1 root staff 422 Jan 17 11:12 ripd.conf
-rw-r--r-- 1 root staff 390 Jan 17 11:12 ripngd.conf
-rw-r--r-- 1 root staff 126 Jan 17 11:12 vtysh.conf
-rw-r--r-- 1 root staff 385 Jan 17 11:18 zebra.conf
here you find some exemples files of configuration
# ls /usr/share/core/icons/
normal svg tiny
# ls /usr/share/doc/core-network
core-network/ core-network-daemon/ core-network-gui/
# ls /usr/share/doc/core-network-gui/examples/configs/sample*
/usr/share/doc/core-network-gui/examples/configs/sample10-kitchen-sink.imn
/usr/share/doc/core-network-gui/examples/configs/sample1-bg.gif
/usr/share/doc/core-network-gui/examples/configs/sample1.imn
/usr/share/doc/core-network-gui/examples/configs/sample1.scen
/usr/share/doc/core-network-gui/examples/configs/sample2-ssh.imn
/usr/share/doc/core-network-gui/examples/configs/sample3-bgp.imn
/usr/share/doc/core-network-gui/examples/configs/sample4-bg.jpg
/usr/share/doc/core-network-gui/examples/configs/sample4-nrlsmf.imn
/usr/share/doc/core-network-gui/examples/configs/sample4.scen
/usr/share/doc/core-network-gui/examples/configs/sample5-mgen.imn
/usr/share/doc/core-network-gui/examples/configs/sample6-emane-rfpipe.imn
/usr/share/doc/core-network-gui/examples/configs/sample7-emane-ieee80211abg.imn
/usr/share/doc/core-network-gui/examples/configs/sample8-ipsec-service.imn
/usr/share/doc/core-network-gui/examples/configs/sample9-vpn.imn
ls /usr/share/doc/quagga/examples/
babeld.conf.sample bgpd.conf.sample2 ospf6d.conf.sample ripd.conf.sample vtysh.conf.sample
bgpd.conf.sample isisd.conf.sample ospfd.conf.sample ripngd.conf.sample zebra.conf.sample
services to start:
/etc/init.d/core-daemon start
/etc/init.d/quagga start
process:
4937 ? Sl 0:00 /usr/bin/python /usr/sbin/core-daemon -d
4959 ? Ss 0:00 /usr/lib/quagga/zebra --daemon -A 127.0.0.1
4963 ? Ss 0:00 /usr/lib/quagga/bgpd --daemon -A 127.0.0.1
4967 ? Ss 0:00 /usr/lib/quagga/ripd --daemon -A 127.0.0.1
4971 ? Ss 0:00 /usr/lib/quagga/ripngd --daemon -A ::1
4975 ? Ss 0:00 /usr/lib/quagga/ospfd --daemon -A 127.0.0.1
4979 ? Ss 0:00 /usr/lib/quagga/ospf6d --daemon -A ::1
4983 ? Ss 0:00 /usr/lib/quagga/isisd --daemon -A 127.0.0.1
4987 ? Ss 0:00 /usr/lib/quagga/babeld --daemon -A 127.0.0.1
ports :
tcp 0 0 127.0.0.1:2601 0.0.0.0:* LISTEN 120 18033 4959/zebra
tcp 0 0 127.0.0.1:2602 0.0.0.0:* LISTEN 120 18045 4967/ripd
tcp 0 0 127.0.0.1:2604 0.0.0.0:* LISTEN 120 18057 4975/ospfd
tcp 0 0 127.0.0.1:2605 0.0.0.0:* LISTEN 120 18038 4963/bgpd
tcp 0 0 127.0.0.1:2608 0.0.0.0:* LISTEN 120 16744 4983/isisd
tcp 0 0 127.0.0.1:2609 0.0.0.0:* LISTEN 120 18069 4987/babeld
udp 0 0 127.0.0.1:4038 0.0.0.0:* 0 50773 4937/python
tcp 0 0 127.0.0.1:4038 0.0.0.0:* LISTEN 0 50768 4937/python
logs:
ls -l /var/log/core-daemon.log
-rw-r--r-- 1 root root 68435 Jan 22 10:37 /var/log/core-daemon.log
ls -l /var/log/quagga/
-rw-r----- 1 quagga quaggavty 0 Jan 22 09:31 zebra.log
/var/log/syslog
in the /home of user start core, you can customize default parameters:
> ls .core/ -l
total 28
drwxr-xr-x 2 leopoldo leopoldo 4096 Jan 20 13:47 configs
drwxr-xr-x 2 leopoldo leopoldo 4096 Jan 9 14:23 myservices
-rw-r--r-- 1 leopoldo leopoldo 754 Jan 16 22:03 nodes.conf
-rw-r--r-- 1 leopoldo leopoldo 362 Jan 20 11:29 plugins.conf
-rw-r--r-- 1 leopoldo leopoldo 887 Jan 20 15:35 prefs.conf
-rw-r--r-- 1 leopoldo leopoldo 46 Jan 9 14:23 servers.conf
-rw-r--r-- 1 leopoldo leopoldo 578 Jan 9 14:23 widgets.conf
start core network emulator and add a router node fram barr on left, click left to add router
click right on node, configure, button services, click on ip_froward modify line as show below and click on ssh to enable it
click rigth on router copy and paste anothers routers
now we add the connection among hosts, pick line from barr on left
click on host to another host. Core adds automaic ip address by default files:
starts in running mode, start shell click right on node, shell window, vtysh, push q to get line cmd
n1# ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_req=1 ttl=64 time=0.060 ms
64 bytes from 10.0.0.2: icmp_req=2 ttl=64 time=0.042 ms
64 bytes from 10.0.0.2: icmp_req=3 ttl=64 time=0.063 ms
64 bytes from 10.0.0.2: icmp_req=4 ttl=64 time=0.069 ms
what core virtualizes?
are virtualized our host process that quagga
6191 ? S 0:00 /usr/sbin/vnoded -v -c /tmp/pycore.10017/n1 -l /tmp/pycore.10017/n1.log -p /tmp/pycore.10017/n1.pid -C /tm
6317 ? Ss 0:00 \_ /usr/lib/quagga/zebra -u root -g root -d
6370 ? Ss 0:00 \_ /usr/lib/quagga/ospf6d -u root -g root -d
6371 ? Ss 0:00 \_ /usr/lib/quagga/ospfd -u root -g root -d
6381 ? Ss 0:00 \_ /usr/sbin/sshd -f /etc/ssh/sshd_config
6394 pts/4 Ss+ 0:00 \_ vtysh
6201 ? S 0:00 /usr/sbin/vnoded -v -c /tmp/pycore.10017/n2 -l /tmp/pycore.10017/n2.log -p /tmp/pycore.10017/n2.pid -C /tm
6360 ? Ss 0:00 \_ /usr/lib/quagga/zebra -u root -g root -d
6375 ? Ss 0:00 \_ /usr/lib/quagga/ospf6d -u root -g root -d
6376 ? Ss 0:00 \_ /usr/lib/quagga/ospfd -u root -g root -d
6380 ? Ss 0:00 \_ /usr/sbin/sshd -f /etc/ssh/sshd_config
and are created some files under /tmp. they are ours hosts
root@debian8:~#
# ls -l /tmp/pycore.10017/
total 80
srw-rw-rw- 1 root root 0 Jan 22 11:43 n1
drwxrwxrwx 8 root root 4096 Jan 22 11:43 n1.conf
-rw-r--r-- 1 root root 17358 Jan 22 11:48 n1.log
-rw-rw-rw- 1 root root 5 Jan 22 11:43 n1.pid
-rw-r--r-- 1 leopoldo leopoldo 11 Jan 22 11:43 n1.xy
srw-rw-rw- 1 root root 0 Jan 22 11:43 n2
drwxrwxrwx 8 root root 4096 Jan 22 11:43 n2.conf
-rw-r--r-- 1 root root 17546 Jan 22 11:49 n2.log
-rw-rw-rw- 1 root root 5 Jan 22 11:43 n2.pid
-rw-r--r-- 1 leopoldo leopoldo 11 Jan 22 11:43 n2.xy
-rw-rw-rw- 1 root root 137 Jan 22 11:43 nodes
-rw-rw-rw- 1 root root 13 Jan 22 11:43 servers
-rw-rw-rw- 1 root root 10 Jan 22 11:43 state
-rw-r--r-- 1 leopoldo leopoldo 2005 Jan 22 11:43 thumb.jpg
here one node:
# file /tmp/pycore.10017/n2*
/tmp/pycore.10017/n2: socket
/tmp/pycore.10017/n2.conf: directory
/tmp/pycore.10017/n2.log: ASCII text
/tmp/pycore.10017/n2.pid: ASCII text
/tmp/pycore.10017/n2.xy: ASCII text
# ls -l /tmp/pycore.10017/n2.conf
total 36
drwxrwxrwx 2 root root 4096 Jan 22 11:43 etc.ssh
-rw-r--r-- 1 root root 290 Jan 22 11:43 ipforward.sh
-rw-r--r-- 1 root root 2507 Jan 22 11:43 quaggaboot.sh
-rw-r--r-- 1 root root 234 Jan 22 11:43 startsshd.sh
drwxrwxrwx 2 root root 4096 Jan 22 11:43 usr.local.etc.quagga
drwxrwxrwx 2 root root 4096 Jan 22 11:43 var.log
drwxrwxrwx 5 root root 4096 Jan 22 11:43 var.run
drwxrwxrwx 2 root root 4096 Jan 22 11:43 var.run.quagga
drw-r-xr-x 2 root root 4096 Jan 22 11:43 var.run.sshd
from menù widgets we can see active process:
from shell:
root@n1:/tmp/pycore.10017/n1.conf#
# ps fax
PID TTY STAT TIME COMMAND
1 ? S 0:00 /usr/sbin/vnoded -v -c /tmp/pycore.10017/n1 -l /tmp/p
52 ? Ss 0:00 /usr/lib/quagga/zebra -u root -g root -d
60 ? Ss 0:00 /usr/lib/quagga/ospf6d -u root -g root -d
61 ? Ss 0:00 /usr/lib/quagga/ospfd -u root -g root -d
65 ? Ss 0:00 /usr/sbin/sshd -f /etc/ssh/sshd_config
88 pts/4 Ss 0:00 /bin/bash
we add somes nodes pc from barr on left. Activate ssh like this
from menù widgets we can see routing:
from shell:
Hello, this is Quagga (version 0.99.22.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
n2# sh ip route
O>* 10.0.0.0/24 [110/20] via 10.0.1.1, eth0, 00:06:35
O 10.0.1.0/24 [110/10] is directly connected, eth0, 00:07:30
C>* 10.0.1.0/24 is directly connected, eth0
O 10.0.2.0/24 [110/10] is directly connected, eth1, 00:07:30
C>* 10.0.2.0/24 is directly connected, eth1
O>* 10.0.3.0/24 [110/20] via 10.0.2.2, eth1, 00:06:40
C>* 127.0.0.0/8 is directly connected, lo
we can connect with ssh:
root@n4:~#
# ip a
172: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
175: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:00:00:aa:00:00 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.20/24 scope global eth0
if we get somes errors, reset the file
:>.ssh/known_hosts
under the user's home who started Core
0
上一篇:running CORE—Common Open Research Emulator—in debian
下一篇:网络模拟环境方案—CORE—NS—OMNeT++
相关热门文章
- 黑客高手讲述入侵的实践经验...
- "没有找到COMRes.dll,应用程...
- 如何给文件夹设置密码?...
- SQL注入之asp+MSSQL
- 免费使用正版卡巴斯基-最新key...
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
0 0
- running CORE—Common Open Research Emulator—in debian
- running CORE—Common Open Research Emulator—in debian
- (OK) running CORE—Common Open Research Emulator—docker
- (OK) running CORE—Common Open Research Emulator—docker
- To simulate the routings in Linux—core—common open research emulator
- CORE—Common Open Research Emulator—INSTALL—Network Emulator
- QEMU - Running Debian in Debian
- ERROR——running docker in CORE on Fedora23
- Parallel program running in dual-core environment
- 路由器逆向分析------Running Debian MIPS Linux in QEMU
- Chinese in Debian——Debian 下的中文设置
- Running Web NMS 4.7 SP2 in Fedora Core 4
- the android virtual Device AVD2.3.3 is currently running in an emulator and cannot be deleted.
- 计算机视觉资源 Computer Vision Open Source Algorithm Implementations Participate in Reproducible Research
- ACM刷题之codeforce————Arpa and a research in Mexican wave
- Research in Motion,RIM
- Secret Research ——字符串
- How to determine if running on Emulator?
- 卷积运算的理解
- 各种android牛逼项目地址总结
- (OK) Installing Quagga—zebra—configure—make—CentOS7
- running CORE—Common Open Research Emulator—in debian
- asp.net vb jquery ajax 取得后台数据
- running CORE—Common Open Research Emulator—in debian
- 网络模拟环境方案—CORE—NS—OMNeT++
- about image ranking --- papers
- BZOJ 1213: [HNOI2004]高精度开根
- Thread详解8:wait/notify机制
- Android 提升效率利器(持续更新)
- 安装numpy、nltk问题汇总
- Node.js - RESTful API - web service
- 算法 - 求二叉树的最大深度
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
明朝皇帝表
明朝多少年
明朝好女婿
生活在明朝
明朝火器
明朝灭亡
明朝君主
明朝疆域
明朝正德
明朝嘉靖
明朝后裔
明朝首都
明朝迁都
明朝香炉
明朝碗
明朝太监
明朝版图
明朝党争
明朝科技
明朝时期
明朝宰相
回到明朝
明朝大公
明朝大将
明朝那点事
回到明朝当
明朝祸害
明朝末年
明朝简介
明朝败家子上山打老虎额
我在明朝当国公
明朝败家子txt
明朝败家子sodu
明朝败家子txt下载
回到明朝当暴君
回到明朝当王爷之杨凌传
回到明朝当王爷杨凌传
回到明朝当王爷txt下载
穿到明朝考科举
明朝皇帝列表
回到明朝当国公