Difference between revisions of "3-tier design/routerIPs"

From Teknologisk videncenter
Jump to: navigation, search
m
m
 
(One intermediate revision by the same user not shown)
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 6: Line 7:
 
<notice>%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up</notice>
 
<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>ip address 10.0.0.1 255.255.255.252</input>
 
HQFW01(config-if)#<input>end</input>
 
HQFW01(config-if)#<input>end</input>
Line 12: Line 12:
 
%SYS-5-CONFIG_I: Configured from console by console
 
%SYS-5-CONFIG_I: Configured from console by console
  
HQFW01#<input>show ip int brie</input>
+
HQFW01#<input>show ip interface brief</input>
 
Interface              IP-Address      OK? Method Status                Protocol
 
Interface              IP-Address      OK? Method Status                Protocol
 
   
 
   
Line 22: Line 22:
 
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>interface fastethernet 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 interface brief</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}}

Latest revision as of 15:13, 2 June 2015

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 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 interface brief</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>interface fastethernet 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 interface brief</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