Difference between revisions of "3-tier design/routerIPs"
From Teknologisk videncenter
m |
m |
||
Line 1: | Line 1: | ||
+ | On Routers Configure the interface with an IP address | ||
<source lang=cli> | <source lang=cli> | ||
HQFW01(config)#<input>interface fa 0/0</input> | HQFW01(config)#<input>interface fa 0/0</input> | ||
Line 22: | Line 23: | ||
HQFW01# | HQFW01# | ||
</source> | </source> | ||
+ | On Switches routing needs to be enabled and the switchport needs to be configure as a routed port with the '''no switchport''' command | ||
+ | <source lang=cli> | ||
+ | DLS1(config)#<input>ip routing</input> | ||
+ | DLS1(config)#<input>int fa 0/1</input> | ||
+ | DLS1(config-if)#<input>no switchport</input> | ||
+ | DLS1(config-if)# | ||
+ | %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down | ||
+ | %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up | ||
+ | |||
+ | DLS1(config-if)#<input>ip address 10.0.0.1 255.255.255.252</input> | ||
+ | DLS1(config-if)#<input>end</input> | ||
+ | DLS1# | ||
+ | %SYS-5-CONFIG_I: Configured from console by console | ||
+ | |||
+ | DLS1#<input>show ip int brie</input> | ||
+ | Interface IP-Address OK? Method Status Protocol | ||
+ | |||
+ | <notice>FastEthernet0/1 10.0.0.1 YES manual up up</notice> | ||
+ | |||
+ | FastEthernet0/2 unassigned YES unset down down | ||
+ | |||
+ | FastEthernet0/3 unassigned YES unset down down | ||
+ | |||
+ | FastEthernet0/4 unassigned YES unset down down | ||
+ | </source> | ||
{{Source cli}} | {{Source cli}} |
Revision as of 08:13, 12 November 2014
On Routers Configure the interface with an IP address
HQFW01(config)#<input>interface fa 0/0</input>
HQFW01(config-if)#<input>no shutdown</input>
HQFW01(config-if)#
<notice>%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up</notice>
HQFW01(config-if)#<input>ip add</input>
HQFW01(config-if)#<input>ip address 10.0.0.1 255.255.255.252</input>
HQFW01(config-if)#<input>end</input>
HQFW01#
%SYS-5-CONFIG_I: Configured from console by console
HQFW01#<input>show ip int brie</input>
Interface IP-Address OK? Method Status Protocol
<notice>FastEthernet0/0 10.0.0.1 YES manual up up</notice>
FastEthernet0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
HQFW01#
On Switches routing needs to be enabled and the switchport needs to be configure as a routed port with the no switchport command
DLS1(config)#<input>ip routing</input>
DLS1(config)#<input>int fa 0/1</input>
DLS1(config-if)#<input>no switchport</input>
DLS1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
DLS1(config-if)#<input>ip address 10.0.0.1 255.255.255.252</input>
DLS1(config-if)#<input>end</input>
DLS1#
%SYS-5-CONFIG_I: Configured from console by console
DLS1#<input>show ip int brie</input>
Interface IP-Address OK? Method Status Protocol
<notice>FastEthernet0/1 10.0.0.1 YES manual up up</notice>
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down