Monday, 2 September 2013

How To Configure Static Routing N Default Gateway in Routers

hardeep mann  /  at  02:23  /  No comments








The Static routing is routing which had been done manually.it is concept of describing single way of configuring path selection of routersin networking.each and configration has to be done at administrator end.

Default Routing:basically a default gateway is path provided to local devices to the internet or the outside network from the local end users.such kind of devices includes DSL routers,WAP,Cables routers.probably same kind of work has also take place at workstation end to another segments.....in some situations gateway also act as proxy server or firewall ...














Configuring Router 0:
R1#sh running-config
Building configuration...

Current configuration : 1299 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial1/0
 ip address 192.168.1.1 255.255.255.0
 clock rate 64000
!
interface Serial1/1
 ip address 192.168.4.2 255.255.255.0
 clock rate 64000
!
interface Serial1/2
 ip address 20.0.0.2 255.0.0.0
 clock rate 64000
!
interface Serial1/3
 no ip address
 shutdown
!
interface Serial1/4
 no ip address
 shutdown
!
interface Serial1/5
 no ip address
 shutdown
!
interface Serial1/6
 no ip address
 shutdown
!
interface Serial1/7
 no ip address
 shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.0 192.168.1.2
ip route 192.168.2.0 255.255.255.0 192.168.1.2
ip route 192.168.3.0 255.255.255.0 192.168.1.2
ip route 192.168.4.0 255.255.255.0 192.168.1.2
ip route 192.168.4.0 255.255.255.0 192.168.4.1
ip route 192.168.3.0 255.255.255.0 192.168.4.1
ip route 192.168.2.0 255.255.255.0 192.168.4.1
ip route 192.168.1.0 255.255.255.0 192.168.4.1
ip route 0.0.0.0 0.0.0.0 20.0.0.1
!

line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

 Configuring R1:
R2#sh running-config
Building configuration...

Current configuration : 1005 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R2
!
!
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial1/0
 ip address 192.168.1.2 255.255.255.0
!
interface Serial1/1
 ip address 192.168.2.1 255.255.255.0
!
interface Serial1/2
 ip address 30.0.0.2 255.0.0.0
!
interface Serial1/3
 no ip address
 shutdown
!
interface Serial1/4
 no ip address
 shutdown
!
interface Serial1/5
 no ip address
 shutdown
!
interface Serial1/6
 no ip address
 shutdown
!
interface Serial1/7
 no ip address
 shutdown
!
ip classless
ip route 192.168.3.0 255.255.255.0 192.168.2.2
ip route 192.168.4.0 255.255.255.0 192.168.2.2
ip route 192.168.4.0 255.255.255.0 192.168.1.1
ip route 0.0.0.0 0.0.0.0 30.0.0.1
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end
 Configuring R2:
 R3#sh running-config
Building configuration...

Current configuration : 1185 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial1/0
 ip address 192.168.2.2 255.255.255.0
 clock rate 64000
!
interface Serial1/1
 ip address 192.168.3.1 255.255.255.0
!
interface Serial1/2
 ip address 40.0.0.2 255.0.0.0
 clock rate 64000
!
interface Serial1/3
 no ip address
 shutdown
!
interface Serial1/4
 no ip address
 shutdown
!
interface Serial1/5
 no ip address
 shutdown
!
interface Serial1/6
 no ip address
 shutdown
!
interface Serial1/7
 no ip address
 shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.0 192.168.3.2
ip route 192.168.2.0 255.255.255.0 192.168.3.2
ip route 192.168.2.0 255.255.255.0 192.168.2.1
ip route 192.168.1.0 255.255.255.0 192.168.2.1
ip route 192.168.4.0 255.255.255.0 192.168.3.2
ip route 192.168.4.0 255.255.255.0 192.168.2.1
ip route 0.0.0.0 0.0.0.0 40.0.0.1
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

 Configuring R3:

R4#sh running-config
Building configuration...

Current configuration : 1185 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R4
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial1/0
 ip address 192.168.4.1 255.255.255.0
!
interface Serial1/1
 ip address 192.168.3.2 255.255.255.0
 clock rate 64000
!
interface Serial1/2
 ip address 10.0.0.2 255.0.0.0
 clock rate 64000
!
interface Serial1/3
 no ip address
 shutdown
!
interface Serial1/4
 no ip address
 shutdown
!
interface Serial1/5
 no ip address
 shutdown
!
interface Serial1/6
 no ip address
 shutdown
!
interface Serial1/7
 no ip address
 shutdown
!
ip classless
ip route 192.168.2.0 255.255.255.0 192.168.4.2
ip route 192.168.3.0 255.255.255.0 192.168.4.2
ip route 192.168.3.0 255.255.255.0 192.168.3.1
ip route 192.168.2.0 255.255.255.0 192.168.3.1
ip route 192.168.1.0 255.255.255.0 192.168.3.1
ip route 192.168.1.0 255.255.255.0 192.168.4.2
ip route 0.0.0.0 0.0.0.0 10.0.0.1
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Configuring R4  (Default Gateway):
DEFAULT#sh running-config
Building configuration...

Current configuration : 899 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname DEFAULT
!
interface Loopback0
 ip address 1.1.1.100 255.0.0.0
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial1/0
 ip address 10.0.0.1 255.0.0.0
!
interface Serial1/1
 ip address 20.0.0.1 255.0.0.0
!
interface Serial1/2
 ip address 30.0.0.1 255.0.0.0
 clock rate 64000
!
interface Serial1/3
 ip address 40.0.0.1 255.255.255.0
!
interface Serial1/4
 no ip address
 shutdown
!
interface Serial1/5
 no ip address
 shutdown
!
interface Serial1/6
 no ip address
 shutdown
!
interface Serial1/7
 no ip address
 shutdown
!
ip classless
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end





please reply for any other assist from our side we always welcome comments

TEAM:
The Technical Zone...

Share
Posted in: Posted on: Monday, 2 September 2013

0 comments:

Recent Comments

Copyright © 2013 Best Networking Solutions. WP Theme-junkie converted by BloggerTheme9
Blogger templates. Proudly Powered by Blogger.