[go: up one dir, main page]

0% found this document useful (0 votes)
56 views3 pages

Configure Router Interfaces & OSPF

The document describes the configuration of subinterfaces and IP addresses on a router's FastEthernet0/0 interface using 802.1Q encapsulation with VLAN IDs 10, 20, 30 and 40. It also shows the configuration of OSPF routing on the router to advertise the VLAN networks. FastEthernet0/1 is configured with an IP address and enabled for OSPF routing.

Uploaded by

tabassi199
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views3 pages

Configure Router Interfaces & OSPF

The document describes the configuration of subinterfaces and IP addresses on a router's FastEthernet0/0 interface using 802.1Q encapsulation with VLAN IDs 10, 20, 30 and 40. It also shows the configuration of OSPF routing on the router to advertise the VLAN networks. FastEthernet0/1 is configured with an IP address and enabled for OSPF routing.

Uploaded by

tabassi199
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Router>en

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface f0/0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to


up

Router(config-if)#ex
Router(config)#int f0/0.10
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed state


to up

Router(config-subif)#encapsulation dot1q
% Incomplete command.
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip add 192.168.1.161 255.255.255.240
Router(config-subif)#ex
Router(config)#int f0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed state


to up

Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip add 192.168.1.129 255.255.255.224
Router(config-subif)#ex
Router(config)#int f0/0.30
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed state


to up

Router(config-subif)#encapsulation dot1q 30
Router(config-subif)#ip add 192.168.1.1 255.255.255.192
Router(config-subif)#ex
Router(config)#int f0/0.40
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.40, changed state


to up

Router(config-subif)#encapsulation dot1q 40
Router(config-subif)#ip add 192.168.1.65 255.255.255.192
Router(config-subif)#ex
Router(config)#do sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset up up
FastEthernet0/0.10 192.168.1.161 YES manual up up
FastEthernet0/0.20 192.168.1.129 YES manual up up
FastEthernet0/0.30 192.168.1.1 YES manual up up
FastEthernet0/0.40 192.168.1.65 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
Router(config)#router ospf 1
Router(config-router)#network 192.168.1.160 0.0.0.15
% Incomplete command.
Router(config-router)#network 192.168.1.160 0.0.0.15 area 0
Router(config-router)#net 192.168.1.128 0.0.0.31 area 0
Router(config-router)#net 192.168.1.0 0.0.0.63 area 0
Router(config-router)#net 192.168.1.64 0.0.0.63 area 0
Router(config-router)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#

Router con0 is now available

Press RETURN to get started.

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int f0/1
Router(config-if)#ip add 172.16.1.1 255.255.255.252
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to


up
Router(config-if)#ex
Router(config)#router ospf 1
Router(config-router)#network 172.16.1.0 0.0.0.3 area 0
Router(config-router)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#

You might also like