我在CORE Network Emulator中创建了一个非常简单的网络,其中包含主机 h1、路由器 R1、路由器 R2 和主机 h2(屏幕截图)。
我进入了 h1 的 shell,并尝试 ping 其他设备。我可以 ping R1 的两个 IP 地址,但尝试 ping 超出它的任何 IP 地址,即 R2 失败。
当我“登录”到 R1 时,我可以 ping 连接到 R1 的 R2 的 IP 地址,但不能 ping 另一端的 IP 地址(连接到 h2)。
我错过了什么?
这是 CORE/IMUNES 格式的配置:
node n1 {
type router
model router
network-config {
hostname R1
!
interface eth1
ip address 10.0.1.1/24
ipv6 address 2001:1::1/64
!
interface eth0
ip address 10.0.0.1/24
ipv6 address 2001:0::1/64
!
}
canvas c1
iconcoords {371.0 308.0}
labelcoords {371.0 340.0}
interface-peer {eth0 n3}
interface-peer {eth1 n2}
}
node n2 {
type router
model router
network-config {
hostname R2
!
interface eth1
ip address 10.0.2.1/24
ipv6 address 2001:2::1/64
!
interface eth0
ip address 10.0.1.2/24
ipv6 address 2001:1::2/64
!
}
canvas c1
iconcoords {598.0 305.0}
labelcoords {598.0 337.0}
interface-peer {eth0 n1}
interface-peer {eth1 n4}
}
node n3 {
type router
model host
network-config {
hostname h1
!
interface eth0
ip address 10.0.0.10/24
ipv6 address 2001:0::10/64
!
}
canvas c1
iconcoords {201.0 465.0}
labelcoords {201.0 497.0}
interface-peer {eth0 n1}
}
node n4 {
type router
model host
network-config {
hostname h2
!
interface eth0
ip address 10.0.2.10/24
ipv6 address 2001:2::10/64
!
}
canvas c1
iconcoords {753.0 460.0}
labelcoords {753.0 492.0}
interface-peer {eth0 n2}
}
link l1 {
nodes {n3 n1}
bandwidth 0
}
link l2 {
nodes {n1 n2}
bandwidth 0
}
link l3 {
nodes {n2 n4}
bandwidth 0
}
canvas c1 {
name {Canvas1}
}
option global {
interface_names no
ip_addresses yes
ipv6_addresses no
node_labels yes
link_labels yes
show_api no
background_images no
annotations yes
grid yes
traffic_start 0
}
option session {
}
