409 lines
7.0 KiB
Plaintext
409 lines
7.0 KiB
Plaintext
node n0 {
|
|
type host
|
|
network-config {
|
|
hostname P1
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00::10/64
|
|
mac address 42:00:aa:00:00:00
|
|
ip address 172.16.1.254/24
|
|
!
|
|
interface eth1
|
|
ipv6 address fc00:1::10/64
|
|
mac address 42:00:aa:00:00:01
|
|
ip address 172.16.2.253/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {600 264}
|
|
labelcoords {600 300}
|
|
interface-peer {eth0 n5}
|
|
interface-peer {eth1 n4}
|
|
custom-configs {
|
|
custom-config-id default {
|
|
custom-command /bin/sh
|
|
config {
|
|
ip addr add 127.0.0.1/8 dev lo0
|
|
ip addr add 172.16.1.254/24 dev eth0
|
|
ip addr add 172.16.2.253/24 dev eth1
|
|
ip -6 addr add ::1/128 dev lo0
|
|
ip -6 addr add fc00::10/64 dev eth0
|
|
ip -6 addr add fc00:1::10/64 dev eth1
|
|
|
|
iptables -t nat -A PREROUTING -d 10.0.0.20 -j DNAT --to-destination 172.16.2.253
|
|
iptables -t nat -A PREROUTING -d 172.16.2.0/24 -j DNAT --to-destination 172.16.2.253
|
|
|
|
rpcbind
|
|
inetd
|
|
|
|
}
|
|
}
|
|
}
|
|
custom-enabled true
|
|
custom-selected default
|
|
}
|
|
|
|
node n1 {
|
|
type host
|
|
network-config {
|
|
hostname P2
|
|
!
|
|
interface eth2
|
|
ipv6 address fc00:5::10/64
|
|
mac address 42:00:aa:00:00:04
|
|
ip address 10.0.0.250/8
|
|
!
|
|
interface eth1
|
|
ipv6 address fc00:2::10/64
|
|
mac address 42:00:aa:00:00:03
|
|
ip address 172.16.3.251/24
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00:1::11/64
|
|
mac address 42:00:aa:00:00:02
|
|
ip address 172.16.2.252/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
!
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {528 504}
|
|
labelcoords {528 540}
|
|
interface-peer {eth0 n4}
|
|
interface-peer {eth1 n3}
|
|
custom-configs {
|
|
custom-config-id default {
|
|
custom-command /bin/sh
|
|
config {
|
|
ip addr add 127.0.0.1/8 dev lo0
|
|
ip addr add 172.16.2.252/24 dev eth0
|
|
ip addr add 172.16.3.251/24 dev eth1
|
|
ip addr add 10.0.0.250/8 dev eth2
|
|
ip -6 addr add ::1/128 dev lo0
|
|
ip -6 addr add fc00:1::11/64 dev eth0
|
|
ip -6 addr add fc00:2::10/64 dev eth1
|
|
ip -6 addr add fc00:4::10/64 dev eth2
|
|
|
|
iptables -t nat -A PREROUTING -s 172.16.1.0/24 -d 10.0.0.20 -j DNAT --to-destination 10.0.0.250
|
|
iptables -t nat -A PREROUTING -d 10.0.0.20 -j DNAT --to-destination 10.0.0.250
|
|
iptables -t nat -A PREROUTING -d 172.16.3.0/24 -j DNAT --to-destination 172.16.3.251
|
|
rpcbind
|
|
inetd
|
|
|
|
}
|
|
}
|
|
}
|
|
custom-enabled true
|
|
interface-peer {eth2 n2}
|
|
custom-selected default
|
|
}
|
|
|
|
node n3 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname S3
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {791 362}
|
|
labelcoords {791 385}
|
|
interface-peer {e0 n1}
|
|
interface-peer {e1 n10}
|
|
interface-peer {e2 n11}
|
|
}
|
|
|
|
node n4 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname S2
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {302 301}
|
|
labelcoords {302 324}
|
|
interface-peer {e0 n0}
|
|
interface-peer {e1 n1}
|
|
interface-peer {e2 n8}
|
|
interface-peer {e3 n9}
|
|
}
|
|
|
|
node n5 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname S1
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {370 100}
|
|
labelcoords {370 123}
|
|
interface-peer {e0 n0}
|
|
interface-peer {e1 n7}
|
|
interface-peer {e2 n6}
|
|
}
|
|
|
|
node n6 {
|
|
type pc
|
|
network-config {
|
|
hostname pc1
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00::21/64
|
|
mac address 42:00:aa:00:00:09
|
|
ip address 172.16.1.1/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
ip route 0.0.0.0/0 172.16.1.254
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {96 96}
|
|
labelcoords {96 127}
|
|
interface-peer {eth0 n5}
|
|
}
|
|
|
|
node n7 {
|
|
type pc
|
|
network-config {
|
|
hostname pc2
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00::20/64
|
|
mac address 42:00:aa:00:00:08
|
|
ip address 172.16.1.2/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
ip route 0.0.0.0/0 172.16.1.254
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {99 271}
|
|
labelcoords {99 302}
|
|
interface-peer {eth0 n5}
|
|
}
|
|
|
|
node n8 {
|
|
type pc
|
|
network-config {
|
|
hostname pc3
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00:1::20/64
|
|
mac address 42:00:aa:00:00:06
|
|
ip address 172.16.2.1/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
ip route 0.0.0.0/0 172.16.2.252
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {96 504}
|
|
labelcoords {96 535}
|
|
interface-peer {eth0 n4}
|
|
}
|
|
|
|
node n9 {
|
|
type pc
|
|
network-config {
|
|
hostname pc4
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00:1::21/64
|
|
mac address 42:00:aa:00:00:07
|
|
ip address 172.16.2.2/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
ip route 0.0.0.0/0 172.16.2.252
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {265 534}
|
|
labelcoords {265 565}
|
|
interface-peer {eth0 n4}
|
|
}
|
|
|
|
node n10 {
|
|
type pc
|
|
network-config {
|
|
hostname pc5
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00:2::20/64
|
|
mac address 42:00:aa:00:00:0a
|
|
ip address 172.16.3.1/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {624 96}
|
|
labelcoords {624 127}
|
|
interface-peer {eth0 n3}
|
|
}
|
|
|
|
node n11 {
|
|
type pc
|
|
network-config {
|
|
hostname pc6
|
|
!
|
|
interface eth0
|
|
ipv6 address fc00:2::21/64
|
|
mac address 42:00:aa:00:00:0b
|
|
ip address 172.16.3.2/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {798 105}
|
|
labelcoords {798 136}
|
|
interface-peer {eth0 n3}
|
|
}
|
|
|
|
node n2 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname Wide_Net
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {720 528}
|
|
labelcoords {720 551}
|
|
interface-peer {e0 n1}
|
|
interface-peer {e1 n12}
|
|
}
|
|
|
|
node n12 {
|
|
type pc
|
|
network-config {
|
|
hostname pc7
|
|
!
|
|
interface eth0
|
|
ip address 10.0.0.20/8
|
|
ipv6 address fc00:5::20/64
|
|
mac address 42:00:aa:00:00:05
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {840 432}
|
|
labelcoords {840 463}
|
|
interface-peer {eth0 n2}
|
|
}
|
|
|
|
link l0 {
|
|
nodes {n0 n5}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l1 {
|
|
nodes {n4 n0}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l2 {
|
|
nodes {n4 n1}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l3 {
|
|
nodes {n3 n1}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l5 {
|
|
nodes {n4 n8}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l6 {
|
|
nodes {n9 n4}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l7 {
|
|
nodes {n5 n7}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l8 {
|
|
nodes {n5 n6}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l9 {
|
|
nodes {n3 n10}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l10 {
|
|
nodes {n3 n11}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l4 {
|
|
nodes {n2 n1}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l11 {
|
|
nodes {n12 n2}
|
|
bandwidth 0
|
|
}
|
|
|
|
canvas c0 {
|
|
name {Canvas0}
|
|
}
|
|
|
|
option show {
|
|
interface_names yes
|
|
ip_addresses yes
|
|
ipv6_addresses no
|
|
node_labels yes
|
|
link_labels yes
|
|
background_images no
|
|
annotations yes
|
|
hostsAutoAssign no
|
|
grid yes
|
|
iconSize normal
|
|
zoom 1.0
|
|
}
|
|
|