概要
25/10/3 ダイナミックルーティングのひとつであるOSPFを用いて、異なるセグメント間での通信を試みました。
背景
- 先輩「osインストールかルータ触るかかどっちがいい?」
- 一年生「ルータがいいです!!!(意見完全一致)」
工夫したポイント
PassiveInterfaceによってルータとPC間の無駄な通信(Hello Packet等)を遮断する。
show running config実行結果
// Router1
interface GigabitEthernet0/0
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface GigabitEthernet0/3
no ip address
!
interface GigabitEthernet0/4
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/5
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
!
router ospf 1
passive-interface GigabitEthernet0/4
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
line con 0
no modem enable
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
!
end
// Router2
interface GigabitEthernet0/0
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface GigabitEthernet0/3
no ip address
!
interface GigabitEthernet0/4
ip address 192.168.40.2 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/5
ip address 192.168.3.2 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
!
router ospf 1
passive-interface GigabitEthernet0/4
network 192.168.3.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
line con 0
no modem enable
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
!
end
//Router3
hostname Router3
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
ethernet lmi ce
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
license udi pid C841M-4X-JSEC/K9 sn FGL211123MC
!
!
!
redundancy
!
interface GigabitEthernet0/0
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface GigabitEthernet0/3
no ip address
!
interface GigabitEthernet0/4
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/5
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
!
router ospf 1
network 192.168.2.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
line con 0
no modem enable
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
!
end
感想
- 菅原「無事pingが通りHappy!」
- 西村k「楽しかった!帰ります」
- 白波「楽しかったー!でも私のPCで192.168.4.0/24が割り当てられなかったのなんで?」