186 lines
2.6 KiB
Plaintext
186 lines
2.6 KiB
Plaintext
node n0 {
|
|
type host
|
|
network-config {
|
|
hostname host1
|
|
!
|
|
interface eth1
|
|
ip address 172.16.2.254/24
|
|
!
|
|
interface eth0
|
|
ip address 172.16.1.254/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {432 72}
|
|
labelcoords {432 108}
|
|
interface-peer {eth0 n1}
|
|
interface-peer {eth1 n2}
|
|
}
|
|
|
|
node n1 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname switch1
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {264 216}
|
|
labelcoords {264 239}
|
|
interface-peer {e0 n0}
|
|
interface-peer {e1 n3}
|
|
interface-peer {e2 n4}
|
|
}
|
|
|
|
node n2 {
|
|
type lanswitch
|
|
network-config {
|
|
hostname switch2
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {600 216}
|
|
labelcoords {600 239}
|
|
interface-peer {e0 n0}
|
|
interface-peer {e1 n5}
|
|
interface-peer {e2 n6}
|
|
}
|
|
|
|
node n3 {
|
|
type pc
|
|
network-config {
|
|
hostname pc1
|
|
!
|
|
interface eth0
|
|
ip address 172.16.1.1/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {120 360}
|
|
labelcoords {120 391}
|
|
interface-peer {eth0 n1}
|
|
}
|
|
|
|
node n4 {
|
|
type pc
|
|
network-config {
|
|
hostname pc2
|
|
!
|
|
interface eth0
|
|
ip address 172.16.1.2/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {408 360}
|
|
labelcoords {408 391}
|
|
interface-peer {eth0 n1}
|
|
}
|
|
|
|
node n5 {
|
|
type pc
|
|
network-config {
|
|
hostname pc3
|
|
!
|
|
interface eth0
|
|
ip address 172.16.2.1/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {504 360}
|
|
labelcoords {504 391}
|
|
interface-peer {eth0 n2}
|
|
}
|
|
|
|
node n6 {
|
|
type pc
|
|
network-config {
|
|
hostname pc4
|
|
!
|
|
interface eth0
|
|
ip address 172.16.2.2/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {744 360}
|
|
labelcoords {744 391}
|
|
interface-peer {eth0 n2}
|
|
}
|
|
|
|
link l0 {
|
|
nodes {n1 n0}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l1 {
|
|
nodes {n2 n0}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l2 {
|
|
nodes {n1 n3}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l3 {
|
|
nodes {n1 n4}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l4 {
|
|
nodes {n2 n5}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l5 {
|
|
nodes {n6 n2}
|
|
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
|
|
}
|
|
|