09-06-2012 02:05 PM - edited 03-04-2019 05:30 PM
Hi:
I have a /25 block of public ips from my ISP which I'd like to subnet into two /26 blocks. I have a Cisco 2600 with 2 ethernet ports in it. Can anyone provide me with the commands I'd need to take my 200.180.200.0 255.255.255.128, gateway 200.180.200.1 and turn it into 200.180.200.0 255.255.255.192, gateway 200.180.200.1 and 200.180.200.64 255.255.255.192, gateway 200.180.200.65? One of the interfaces will be connected to the ISP & the other to a switch, and then we could access the two subnets through the switch.
Thanks in advance!
09-06-2012 02:20 PM
Commands for what? the interfaces?
Subnet Mask Inverse Mask Subnet Size Host Range Broadcast
200.180.200.0 255.255.255.128 0.0.0.127 126 200.180.200.1 to 200.180.200.126 200.180.200.127
200.180.200.128 255.255.255.128 0.0.0.127 126 200.180.200.129 to 200.180.200.254 200.180.200.255
09-06-2012 02:23 PM
Yes, I'm confused on how to actually apply the subnets to the interfaces. I've never actually done this before.
Thanks for the breakdown on the subnets!
09-06-2012 02:36 PM
Ok, can you even log into the router?
assuming you can, once you long in enter
enable
show interface
you need to note how the ethernet interfaces are numbered. i.e ethernet x/y...
config t
ethernet x/y
ip address 200.180.200.1 255.255.255.128
no shut
ethernet a/b
ip address 200.180.200.129 255.255.255.128
no shut
a/b x/y are the slot port numbers of the interfaces
do the no shut if you have them cabled up
If this is your first go at router config, Id poke around the cisco site for examples.
09-06-2012 02:47 PM
Thanks for the help. I am connected to the router, and I have been poking around the site. I have played in lab type scenarios before, but I can't find what I'm looking for in this case.
In your example, I'm setting eth0/0 to 200.180.200.1 - but that is the gateway IP which was assigned by the ISP. Do I really want that? Also, I'm looking to end up with two /26 subnets, so I want .192 netmasks, correct?
09-06-2012 02:53 PM
use the .2 address
My bad.
your mask becomes 255.255.255.192
your second subnet is 200.18.200.64 same mask as above. firs host is .65
09-07-2012 12:13 AM
Hi,
to configure the gateway:
enable
config t
ip route 0.0.0.0 0.0.0.0 x.x.x.x where x.x.x.x is the gateway
Regards.
Alain
Don't forget to rate helpful posts.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide