Difference between revisions of "Assigning an IP Address to a Switch"

From Peter Pap's Technowiki
Jump to: navigation, search
(Created page with "1. Select the default VLAN interface config t interface Vlan1 2. Assign an appropriate IP and enable the interface ip address 192.168.X.X 255.255.255.0 no shutdown...")
 
 
Line 12: Line 12:
 
3. Set the default gateway
 
3. Set the default gateway
  
   ip default-gateway 192.168.11.1
+
   ip default-gateway 192.168.X.X
 
   exit
 
   exit
  
  
 
'''NOTE:''' If ports are using a different VLAN, for instance VLAN5, then you will have to create new VLAN interface and assign the IP to it to make this work.
 
'''NOTE:''' If ports are using a different VLAN, for instance VLAN5, then you will have to create new VLAN interface and assign the IP to it to make this work.

Latest revision as of 03:43, 21 September 2010

1. Select the default VLAN interface

  config t
  interface Vlan1

2. Assign an appropriate IP and enable the interface

  ip address 192.168.X.X 255.255.255.0
  no shutdown
  exit

3. Set the default gateway

  ip default-gateway 192.168.X.X
  exit


NOTE: If ports are using a different VLAN, for instance VLAN5, then you will have to create new VLAN interface and assign the IP to it to make this work.