331 lines
5.5 KiB
Plaintext
331 lines
5.5 KiB
Plaintext
node n3 {
|
|
type pc
|
|
network-config {
|
|
hostname A
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:02
|
|
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 {72 120}
|
|
labelcoords {72 151}
|
|
interface-peer {eth0 n4}
|
|
}
|
|
|
|
node n4 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname switch2
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {264 120}
|
|
labelcoords {264 143}
|
|
interface-peer {e0 n3}
|
|
interface-peer {e1 n0}
|
|
}
|
|
|
|
node n0 {
|
|
type host
|
|
network-config {
|
|
hostname P1
|
|
!
|
|
interface eth1
|
|
mac address 42:00:aa:00:00:01
|
|
ip address 172.16.2.253/24
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:00
|
|
ip address 172.16.1.254/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {264 264}
|
|
labelcoords {264 300}
|
|
interface-peer {eth0 n4}
|
|
interface-peer {eth1 n1}
|
|
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 route add 0.0.0.0/0 via 172.16.2.252
|
|
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 172.16.2.253
|
|
|
|
rpcbind
|
|
inetd
|
|
|
|
}
|
|
}
|
|
}
|
|
custom-enabled true
|
|
custom-selected default
|
|
}
|
|
|
|
node n1 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname switch3
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {264 408}
|
|
labelcoords {264 431}
|
|
interface-peer {e0 n0}
|
|
interface-peer {e1 n2}
|
|
interface-peer {e2 n5}
|
|
}
|
|
|
|
node n2 {
|
|
type pc
|
|
network-config {
|
|
hostname B
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:03
|
|
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 {72 408}
|
|
labelcoords {72 439}
|
|
interface-peer {eth0 n1}
|
|
}
|
|
|
|
node n5 {
|
|
type host
|
|
network-config {
|
|
hostname P2
|
|
!
|
|
interface eth2
|
|
mac address 42:00:aa:00:00:07
|
|
ip address 10.0.0.250/8
|
|
!
|
|
interface eth1
|
|
mac address 42:00:aa:00:00:06
|
|
ip address 172.16.3.251/24
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:04
|
|
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 {456 408}
|
|
labelcoords {456 444}
|
|
interface-peer {eth0 n1}
|
|
interface-peer {eth1 n7}
|
|
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/24 dev eth2
|
|
ip -6 addr add ::1/128 dev lo0
|
|
|
|
iptables -t filter -A FORWARD -s 172.16.2.253 -d 172.16.3.1 -j DROP
|
|
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 172.16.3.251
|
|
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to-source 10.0.0.250
|
|
|
|
rpcbind
|
|
inetd
|
|
|
|
}
|
|
}
|
|
}
|
|
custom-enabled true
|
|
interface-peer {eth2 n6}
|
|
custom-selected default
|
|
}
|
|
|
|
node n7 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname switch4
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {456 264}
|
|
labelcoords {456 287}
|
|
interface-peer {e0 n8}
|
|
interface-peer {e1 n5}
|
|
}
|
|
|
|
node n8 {
|
|
type pc
|
|
network-config {
|
|
hostname C
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:05
|
|
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 {456 120}
|
|
labelcoords {456 151}
|
|
interface-peer {eth0 n7}
|
|
}
|
|
|
|
node n6 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname switch5
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {648 408}
|
|
labelcoords {648 431}
|
|
interface-peer {e0 n5}
|
|
interface-peer {e1 n9}
|
|
interface-peer {e2 n10}
|
|
}
|
|
|
|
node n9 {
|
|
type pc
|
|
network-config {
|
|
hostname pc4
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:08
|
|
ip address 10.0.0.2/8
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {648 264}
|
|
labelcoords {648 295}
|
|
interface-peer {eth0 n6}
|
|
}
|
|
|
|
node n10 {
|
|
type pc
|
|
network-config {
|
|
hostname pc5
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:09
|
|
ip address 10.0.0.1/8
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {792 408}
|
|
labelcoords {792 439}
|
|
interface-peer {eth0 n6}
|
|
}
|
|
|
|
link l2 {
|
|
nodes {n4 n3}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l0 {
|
|
nodes {n0 n4}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l1 {
|
|
nodes {n1 n0}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l3 {
|
|
nodes {n2 n1}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l4 {
|
|
nodes {n5 n1}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l5 {
|
|
nodes {n7 n8}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l6 {
|
|
nodes {n5 n7}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l7 {
|
|
nodes {n6 n5}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l8 {
|
|
nodes {n9 n6}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l9 {
|
|
nodes {n10 n6}
|
|
bandwidth 0
|
|
}
|
|
|
|
canvas c0 {
|
|
name {Canvas0}
|
|
}
|
|
|
|
option show {
|
|
interface_names yes
|
|
ip_addresses yes
|
|
ipv6_addresses yes
|
|
node_labels yes
|
|
link_labels yes
|
|
background_images no
|
|
annotations yes
|
|
hostsAutoAssign no
|
|
grid yes
|
|
iconSize normal
|
|
zoom 1.0
|
|
}
|
|
|