IP allocation

kitbsonkitbson Member Posts: 35 ■■□□□□□□□□
Would you mind answering me some problem about IP allocation??

i want to know what rule i need to follow for the allocate IP to router and
switch.
e.g
Switch ---(class C)---Router---(class B)---Router---(class C)---Swtich


THX~~~

Comments

  • !30!30 Member Posts: 356
    Switch -(1)--(class C)---eth0 Router1 eth1-(2)--(class B)---eth 0 Router2 eth1-(3)--(class C)---Swtich
    

    First : you don't allocate an IP to the swtich,only to the routers.

    Second , on network (1) , you allocate a Class C , something like 200.2.2.1 . You allocate 200.2.2.1/24 for network 1 . (on eth0) on Router1.

    On Router 1 eth1 you allocate a Class B IP address something like 150.2.2.1/16.

    On Router 2 eth0 you allocate a Class B IP address within the same network with Router 1 eth1 ( 150.2.0.0/16 ) something like : 150.2.2.2/16. /16 means : 255.255.0.0 -> default subnet mask for Class B.

    On Router 2 eth1 you allocate another Class C IP address , something
    like : 195.2.4.1/24 ( from network 195.2.4.0/24 ).

    Maybe you should look on IP v4 classes : IPv4


    Cheers ! icon_lol.gif
    Optimism is an occupational hazard of programming: feedback is the treament. (Kent Beck)
  • kitbsonkitbson Member Posts: 35 ■■□□□□□□□□
    If i use Routing Protocol "RIP", the subnet mask of the whole network
    must be SAME ???
Sign In or Register to comment.