PC에 Ip를 입력해준다.
ip 192.168.1.3 255.255.255.224 192.168.1.30
ip 네트워크주소 / 서브넷 마스크 / GW주소
vlan 10,20,30과 통신하기 위해 다음과 같이 vlan을 설정한다.
Switch(config)# vlan 10
Switch(config-vlan)#name vlan10
다른 네트워크와 한 회선으로 통신하려면 Trunk를 만들어준다.
Switch(config)# int e0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
R14 OSPF
☆ vlan 10,20,30의 gw를 ospf에 입력해야한다.
Router(config)#route ospf 1
Router(config-router)#network 192.168.1.224 0.0.0.3 area 0
네트워크주소 / 와일드카드 / area 0
R15 ospf
R15 STATIC
R17 STATIC
-> 다른 정보를 많이 받는다면 디폴트값을 넣어준다.
ip route 0.0.0.0 0.0.0.0 192.168.1.225
Router(config-router)#re
Router(config-router)#redistribute ?
application Application
bgp Border Gateway Protocol (BGP)
connected Connected
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
isis ISO IS-IS
iso-igrp IGRP for OSI networks
lisp Locator ID Separation Protocol (LISP)
maximum-prefix Maximum number of prefixes redistributed to protocol
mobile Mobile routes
odr On Demand stub Routes
ospf Open Shortest Path First (OSPF)
ospfv3 OSPFv3
rip Routing Information Protocol (RIP)
static Static routes
vrf Specify a source VRF
Router(config-router)#redistribute static
Router(config-router)#end~~~~