'network'에 해당되는 글 3건

  1. 2007.07.12 router
  2. 2007.07.11 sw configuration
  3. 2007.07.10 Ip Address design

router

network 2007. 7. 12. 23:29

static route
 ip route [network] [subnetmask] [next hop]

# ip route 172.16.1.0 255.255.255.0 172.16.2.1

** default routes
# ip route 0.0.0.0 0.0.0.0 172.16.2.2
# sh ip route

dynamic

RIP
router [protocol]
network [network addr]

(**lab 3-1)
# router rip
# network 10.0.0.0 (classfull 로 subnet mask 전달안함)

#sh ip route
# sh ip protocols
# debug ip rip (<--> u all)

EIGRP
router [protocol] [AS NO]
network [network addr]

(**lab 3-2)
# router eigrp 500
* network 10.10.10.0
# network 192.168.5.16
# network 192.168.5.32

# clock rate 64000
# sh ip route
# sh ip protocols
# sh ip eigrp ne (neighbor)
# sh ip eigrp traffic
# debug ip eigrp

OSPF
router ospf [AS NO]
network [network addr] [wildcard-mask] area [area id]

**** wildcard-mask ****
와일드카드 마스크는 summarizing을 위해 계산
192.168.5.65/28 의 subnet mask 는 255.255.255.240 이고
와일드카드 마스크는 0.0.0.15

(** lab 3-3 참고)
# router ospf 500
# network 10.10.10.0 0.0.0.255 area 0
# network 192.168.5.32 0.0.0.15 area 0
# network 192.168.5.16 0.0.0.15 area 0
# network 192.168.5.64 0.0.0.15 area 0

# sh ip route
# sh ip ospf neighbor
# debug ip ospf events

VLSM (Variable-Length Subnet Mask)
172.16.1.0/24

172.16.2.0/24
                    -->  172.16.2.0/26
                           172.16.2.64/26
      172.16.2.128/26
                              -->  172.16.2.128/28
                172.16.2.144/28
         172.16.2.160/28
         172.16.2.176/28
       172.16.2.192/26
172.16.3.0/24

'network' 카테고리의 다른 글

sw configuration  (0) 2007.07.11
Ip Address design  (0) 2007.07.10
Posted by efrit
,

sw configuration

network 2007. 7. 11. 00:18

switch

ip
(config)# int vlan 1
(config-if)# ip addr 10.5.5.11 255.255.255.0

(config)# ip default-gateway 10.5.5.3

# sh int vlan 1

(config-if)# duplex { auto | full | half }

# sh mac-address-table

mac-addr-table static
(config)# mac-address-table sttic 0004.56000.6700 vlan 1 int fa0/2

switch port security

(config-if)# switchport mode access
(config-if)# switchport port-security
(config-if)# switchport port-security maximum 1
(config-if)# switchport port-security mac-address 0008.eeee.eeee
(config-if)# switchport port-security violation { shutdown | protect | restrict }

# sh port-security
# sh port-security { int <fa0/2> | address }

# copy startup-config tftp://ip addr/xxx.cfg
# copy running-config strtup-config
# erase startup-config
# reload

VTP (Vlan Trunk Protocol)

(config)# vtp mode { server | client | transparent }
(config)# vtp domain <name> 한번 생성하면 삭제 안됨. 수정가능
(config)# vtp password <pass>
(config)# vtp pruning

# sh vtp status

(config-if)# sh
(config-if)# switchport trunk encapsulation { isl | dot1q | negotiate }
(config-if)# switchport mode { dynamic <auto | desirable> | trunk }
(config-if)# no sh

adding vlan

(config)# vlan 2
(config-if)# name vlan2

(config)# int fa0/2
(config-if)# switchport access vlan 2   int fa0/2 를 vlan 2에게 포함시킨다
# sh vlan
# sh int f0/2 switchport
# sh int fa0/2 trunk
# sh vlan { brief | id <id> | name <name>}
# sh spnning-tree { active | detail | vlan <id> | summury }

'network' 카테고리의 다른 글

router  (0) 2007.07.12
Ip Address design  (0) 2007.07.10
Posted by efrit
,

Ip Address design

network 2007. 7. 10. 20:05

C class

ip : 202.116.9.0 에서 14개의 서브넷과 12개의 호스트를 구하기
1. 서브넷의 1의 갯수 구하기
   구해야할 서브넷 14는 2의배수 8<12 16=2의4승 = 1의갯수가 4개면 옥텟값은 240
   ==> 서브넷은 255.255.255.240
2. 서브넷 어드레스
   256 - 240 = 16
202.116.9.0     202.116.9.1    ~  202.116.9.14 ,  220.116.9.15 (broadcast)
202.116.9.16    202.116.9.17  ~  202.116.9.30 ,  202.116.9.31(broadcast)

202.116.9.240  202.116.9.241 ~  202.116.9.254 , 202.116.9.255(broadcast)

B class

137.68.0.0 에서 60개의 서브넷과 1000개의 호스트
1. 60 < 64 = 2의 6승 == 은 252
  ==> 255.255.252.0
2. 256 - 252 = 4
137.68.0.0     137.68.0.1 ~ 137.68.3.254 , 137.68.3.255
137.68.4.0     137.68.4.1 ~ 137.68.7.254 , 137.68.3.255

137.68.252.0  137.68.252.1 ~ 137.68.255.254 , 137.68.255.255

B class

160.120.0.0 에서 500개의 서브넷 구하기
1. 500 < 512 = 2의 9승
   일의 갯수가 9개이므로 3번옥텟은 255 , 4번 옥텟은 128
  ==> 255.255.255.128
2. 256-128=128
160.120.0.0         160.120.0.1  ~ 160.120.0.126  , 160.120.0.127
160.120.0.128      160.120.0.129 ~ 160.120.0.254  , 160.120.0.255
160.120.1.0         160.120.1.1   ~  160.120.1.126   ,  160.120.1.127

160.120.255.128   160.120.255.129 ~ 160.120.255.254 , 160.120.255.255

'network' 카테고리의 다른 글

router  (0) 2007.07.12
sw configuration  (0) 2007.07.11
Posted by efrit
,