Magmadragoon wrote: » I assume you have a 1841 router which has two fast ethernet ports 0/0 & 0/1. To connect them to a switch you use a port on the switch but you must turn the connection on by assigning one of the ports an IP address and using the no shutdown command or use the connection as a trunk link. Switchport mode does not work on a router because a router is doing layer 3 work. Switchport mode works on switches that do layer 2 or layer 2 + layer 3 switches.
Magmadragoon wrote: » I think you are talking about the NM-16ESW Cisco 16 port module in GNS3
theodoxa wrote: » You can configure NAT and DHCP on the 1841. This won't make it a switch, but it will allow your clients to reach the internet through it. R1(config)# interface FastEthernet 0/0 R1(config-if)# ip address dhcp R1(config-if)# ip nat outside R1(config-if)# no shutdown R1(config-if)# exit R1(config)# interface FastEthernet 0/1 R1(config-if)# ip address 192.168.10.1 255.255.255.0 R1(config-if)# ip nat inside R1(config-if)# no shutdown R1(config-if)# exit R1(config)# ip dhcp excluded-address 192.168.10.1 R1(config)# ip dhcp pool INSIDE R1(dhcp-config)# network 192.168.10.0 /24 R1(dhcp-config)# default-router 192.168.10.1 R1(dhcp-config)# dns-server 8.8.8.8 8.8.4.4 R1(dhcp-config)# exit R1(config)# ip route 0.0.0.0 0.0.0.0 FastEthernet 0/0 R1(config)# access-list 10 permit 192.168.10.0 0.0.0.255 R1(config)# ip nat inside source list 10 interface FastEthernet 0/0 overload
awitt11 wrote: » You need to be more clear about what you are trying to accomplish. Acting as a 'simple switch' or bridge is not what the 1841 was designed for. It could be set up as a proxy or zone-based IOS firewall, but that might be more configuration than you are looking for here. You showed a switch in your diagram but then said you don't have a switch....
deth1k wrote: » if you want router to do just switching then you need to disable routing: no ip routing and configure IRB bridge irb ! bridge 1 protocol ieee ! int fa0/0 bridge-group 1 ! int fa0/1 bridge-group 1
gorebrush wrote: » I'd have thought that ought to do it. Though, quite why you'd need to turn a two port device into a switch beats me... Unless you've got some epic application for it.
JeanM wrote: » I think the OP is wanting to use this router as a L2 switch because it's got a switch module installed in it...maybe the switch he's got is out of ports and he wants to add this 1800 series with the switch module installed to the existing switch (trunk) in order to provide more switch ports? Not sure....but why not just get the right component for the job? IE. another switch.
zoro_2009 wrote: » I see you are configuring the DHCP, Isn't this a configuration of a router with a DHCP enabled !
All I want is to make the router a transparent equipment for the users(switch), so the users will get directly the Internet routers address as the default gateway (NOT the 1840 router)
theodoxa wrote: » The only reason I know of for a 2 port switch (bridge) was to connect two hubs together, but divide them into separate collision domains. This might have been done 10 or 20 years ago, but not anymore. Switch ports are cheap enough now that nobody uses Hubs, except for Troubleshooting when they don't know how to configure SPAN.