Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HERE IS A SCRIPT YOU CAN USE TO:
- 1.) Turn your Cisco router that is currently ROUTING and NATTING and doing all kinds of professional stuff with 16 ips into....
- 2.) A Router that gets ONE public IP ADDRESS and port-forwards for IMAP, port 80, etc for a temporary solution.
- Note: This script will just wipe out your current config so no need to save it! Just reboot when your main connection comes back up and you should have your production (original) config right there ready to go.
- NOTE: I'm turning "off" some stuff I had set. You may not need to do this.
- NOTE: I'm assuming this "mifi setup as a BRIDGE (you do that in the mifi setup from your computer) is plugged into the WAN PORT of the Cisco router which is FastEthernet 0/0. I also have several VLANS setup because I'm running a Cisco switch with VLANS. 1924 maybe? Doesn't really matter for this solution, just noting why you'll see interfaces like 1.4, 1.5, etc. Those are VLANS that all are on FastEthernet 0/1. See like 0/1.4 is VLAN interface 4 on FastEthernet 0/1.
- NOTE: Where you see like "1.1.1.52" below is my say...web server. I just changed the IPs so I wasn't posting them here. Just put in yours or remove where you don't have the need.
- =====START
- config t
- interface FastEthernet0/0
- no ip mtu 1492
- no ip tcp adjust-mss 1452
- no ip mroute-cache
- duplex auto
- speed auto
- ntp disable
- no pppoe enable
- no pppoe-client dial-pool-number 1
- no cdp enable
- service-policy output VOICE
- ip address dhcp
- ip nat outside
- exit
- interface FastEthernet0/1.4
- ip nat inside
- shut
- no shut
- exit
- no ip nat pool thenatpool MYPRODUCTIONNATTEDIP MYPRODUCTIONNATTEDIP netmask 255.255.255.240
- no ip nat inside source route-map nat-allow pool thenatpool overload
- ip nat inside source route-map nat-allow pool thenatpool2 overload
- no ip http server
- no ip http secure-server
- ip classless
- no ip route 0.0.0.0 0.0.0.0 Dialer1
- ip nat pool thenatpool2 NEWIPADDRESSASSIGNEDBYTHEMIFI NEWIPADDRESSASSIGNEDBYTHEMIFI netmask SUBNETMASKOFTHATIP
- ip nat inside source static tcp 1.1.1.56 7071 interface FastEthernet0/0 7071
- ip nat inside source static tcp 1.1.1.56 389 interface FastEthernet0/0 389
- ip nat inside source static tcp 1.1.1.56 993 interface FastEthernet0/0 993
- ip nat inside source static tcp 1.1.1.56 995 interface FastEthernet0/0 995
- ip nat inside source static tcp 1.1.1.56 465 interface FastEthernet0/0 465
- ip nat inside source static tcp 1.1.1.52 443 interface FastEthernet0/0 443
- ip nat inside source static tcp 1.1.1.52 80 interface FastEthernet0/0 80
- ip nat inside source static udp 1.1.1.56 25 interface FastEthernet0/0 25
- ip nat inside source static tcp 1.1.1.56 25 interface FastEthernet0/0 25
- ip nat inside source route-map nat-allow pool thenatpool overload
- ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
- no ip access-list extended nat-permit
- ip access-list extended nat-permit
- deny ip 10.0.0.0 0.255.255.255 10.0.0.0 0.255.255.255
- permit ip 10.1.32.0 0.0.0.255 any
- permit ip 10.1.33.0 0.0.0.255 any
- permit ip 10.1.41.0 0.0.0.255 any
- permit ip 10.1.72.0 0.0.0.3 any
- permit ip 1.1.1.48 0.0.0.15 any
- exit
- int fastethernet 0/0
- shut
- no shut
- =====END
- Keywords: Global Capacity, MegaPath, Covad, Verizon MiFi, temporary, port-fowarding solution, cisco 2621, router
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement