Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with routing between VLAN's 1

Status
Not open for further replies.

TrunkMan

Programmer
Jan 12, 2010
102
GB
Relatively new to cisco and practising with equipment before trying any of the ICND exams. Trying to get inter-vlan routing working. I have a Cisco 1801. Not sure if what Im trying to do is achievable but Im sure ill learn from mistakes. Trying to use Fe0 as my trunk port and use Fe1 of the embedded switch as the other trunk port. Cant seem to get this to work. My config is as follows :


VLAN_Router#sh run
Building configuration...

Current configuration : 1209 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname VLAN_Router
!
boot-start-marker
boot-end-marker
!
no logging console
enable password cisco
!
no aaa new-model
!
!
dot11 syslog
!
!
ip cef
!
!
!
multilink bundle-name authenticated
!
!
!
!
archive
log config
hidekeys
!
!
!
!
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
!
interface FastEthernet0
no ip address
duplex auto
speed auto
!
interface FastEthernet0.1
encapsulation dot1Q 1 native
!
interface FastEthernet0.2
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet1
switchport mode trunk
!
interface FastEthernet2
!
interface FastEthernet3
!
interface FastEthernet4
!
interface FastEthernet5
switchport access vlan 2
!
interface FastEthernet6
!
interface FastEthernet7
!
interface FastEthernet8
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end

VLAN_Router#



Can anyone see what I am doing wrong ?
Appreciate any help.
 
if you are trying to do router on a stick, then interface fa0.1 should have the IP address for vlan1.

interface FastEthernet0.1
encapsulation dot1Q 1 native
!
interface FastEthernet0.2
encapsulation dot1Q 2
ip address 192.168.2.1 255.255.255.0

also the whole point of router on a stick is that there is a switch on the other side with a trunk port.

are you just trying to create multiple vlans in the same switch and route between them ? cause you dont really need anything special for that, the router knows its connected interfaces and it will route between them. generally what you are attempting to do requires at least 2 equipment, a router and a switch.


|---fa0.1--
Router | |<===Trunkport<===Switch(Vlan 1, Vlan 2)
|---fa0.2--



IF you have a switch and the setup is like above, and its still not working (after you changing the IP address from vlan1 interfaces to the proper fa0.1 interface) then check the switch and see if the port connected to the router is in TRUNK mode.

You should always, always force trunk mode - NEVER set it for auto negotiate/desirable its just bad design.


We must go always forward, not backward
always up, not down and always twirling twirling towards infinity.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top