216 lines
3.1 KiB
Plaintext
216 lines
3.1 KiB
Plaintext
node n0 {
|
|
type pc
|
|
network-config {
|
|
hostname pc1-1
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:01
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {144 384}
|
|
labelcoords {144 415}
|
|
interface-peer {eth0 n2}
|
|
}
|
|
|
|
node n1 {
|
|
type pc
|
|
network-config {
|
|
hostname pc1-2
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:02
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {288 384}
|
|
labelcoords {288 415}
|
|
interface-peer {eth0 n2}
|
|
}
|
|
|
|
node n2 {
|
|
type hub
|
|
network-config {
|
|
hostname hub1
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {216 240}
|
|
labelcoords {216 261}
|
|
interface-peer {e0 n3}
|
|
interface-peer {e1 n0}
|
|
interface-peer {e2 n1}
|
|
interface-peer {e3 n4}
|
|
}
|
|
|
|
node n3 {
|
|
type host
|
|
network-config {
|
|
hostname DHCPsrv
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:00
|
|
ip address 192.168.10.10/20
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {72 96}
|
|
labelcoords {72 132}
|
|
interface-peer {eth0 n2}
|
|
}
|
|
|
|
node n4 {
|
|
type host
|
|
network-config {
|
|
hostname GW
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:03
|
|
ip address 192.168.10.254/20
|
|
!
|
|
interface eth1
|
|
mac address 42:00:aa:00:00:04
|
|
ip address 172.16.2.254/24
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {456 96}
|
|
labelcoords {456 132}
|
|
interface-peer {eth0 n2}
|
|
interface-peer {eth1 n5}
|
|
}
|
|
|
|
node n5 {
|
|
type hub
|
|
network-config {
|
|
hostname hub2
|
|
!
|
|
}
|
|
canvas c0
|
|
iconcoords {624 192}
|
|
labelcoords {624 213}
|
|
interface-peer {e0 n4}
|
|
interface-peer {e1 n6}
|
|
interface-peer {e2 n7}
|
|
}
|
|
|
|
node n6 {
|
|
type pc
|
|
network-config {
|
|
hostname pc2-1
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:05
|
|
!
|
|
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 n5}
|
|
}
|
|
|
|
node n7 {
|
|
type pc
|
|
network-config {
|
|
hostname pc2-2
|
|
!
|
|
interface eth0
|
|
mac address 42:00:aa:00:00:06
|
|
!
|
|
interface lo0
|
|
type lo
|
|
ip address 127.0.0.1/8
|
|
ipv6 address ::1/128
|
|
!
|
|
}
|
|
auto_default_routes enabled
|
|
canvas c0
|
|
iconcoords {696 360}
|
|
labelcoords {696 391}
|
|
interface-peer {eth0 n5}
|
|
}
|
|
|
|
link l0 {
|
|
nodes {n2 n3}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l1 {
|
|
nodes {n0 n2}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l2 {
|
|
nodes {n1 n2}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l3 {
|
|
nodes {n4 n2}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l4 {
|
|
nodes {n5 n4}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l5 {
|
|
nodes {n6 n5}
|
|
bandwidth 0
|
|
}
|
|
|
|
link l6 {
|
|
nodes {n7 n5}
|
|
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
|
|
}
|
|
|