Cisco 2900

so I am a total hack on cisco IOS and need to change a fringe router ISP to different IP/SNM/GTW. Below are my givens and my assumed commands. please let me know if I am correct:
GIVENS:
Network:       108.188.yx.128
Gateway:       108.188.yx.129
Useable:       108.188.yx.130 thru 108.188.yx.158
Broadcast:       108.188.yx.159
Size:       /27
Subnet:       255.255.255.224

#END GIVENS

enable
config t

interface gigabitethernet 0/0
! THE FOLLOWING IS MY BIG ASSUMPTION Doesn't work - get Bad Mask (where do I get this value?)
ip address 108.188.yx.128 255.255.255.224
no shutdown

interface gigabitethernet 0/1
ip address 108.188.yx.130 255.255.255.224
no shutdown
exit


#default route
ip route 0.0.0.0 0.0.0.0 108.188.yx.129

ctrl-z
exit

then I need to write to running/ or boot config correct?

thanks
looker44Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

asavenerCommented:
A subnet mask of 255.25.255.224 gives you 32 addresses per subnet.  The bottom and top addresses are unusable.  That's why you're getting an error.  x.x.x.128 is not a valid interface address when your subnet is 255.255.255.224.

Also, you'll get an error with trying to put two interfaces in the same subnet.  Pick one interface (g0/1 looks like from your example).
bill30Commented:
It looks like you are wanting to use your G0/0 as the WAN interface, change the ip address to 108.188.yx.130 255.255.255.224.  Make sure this ethernet cable goes to your ISP.

The G0/1 interface could be your internal LAN, and should have the gateway IP your DHCP etc is providing for your internal LAN.  Make sure this cable is going to your internal LAN network.

This will let you statically map IP addresses from your internal LAN to the IP addresses 108.188.yx.131 to 108.188.yx.158 for all of your hosted content/exchange/websites/etc (static NAT).  You will have to also make sure the outside interface G0/0 to your WAN has "ip nat outside", and the internal interface G0/1 has "ip nat inside" for your personal network address translations to work and your LAN clients have access to the internet.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bill30Commented:
And then for your last question, yes you need to do a "copy run start" to make sure the commands are persistent through a reboot.
Benjamin Van DitmarsSr Network EngineerCommented:
can you give us youre complete running config. because what does youre router do. is it only nat from external to internal. or is it working as gateway / shaper for youre connection.

what we normaly see. is a small network on the outside interface /30 and a bigger subnet on the local internet side.

if you share youre config we can help you much better
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.