2012年10月22日星期一

dynamips cannot get network address



dynamips cannot get network card address, you can go to CMD, and knock in the command "getmac", and then get this one \Device\TCPIP_{1BC739EE-CF0D-ABCD-87EB-9C897F66BB72}
you  change it to "\Device\NPF_{1BC739EE-CF0D-ABCD-87EB-9C897F66BB72}
That's all."

dynamips获取不了网卡参数,在CMD下输入getmac,然后把\Device\TCPIP_{1BC739EE-CF0D-ABCD-87EB-9C897F66BB72}
改成\Device\NPF_{1BC739EE-CF0D-490F-87EB-9C897F66BB72},即TCPIP变为NPF

设置private-vlan, how to config private-vlan

SW1:
config t
vtp mode transparent
vtp domain ccie
vtp password cciepass
int f0/19 /*connect to SW2's f0/19*/
switchport trunk encapsulation dot1q
switchport mode trunk
exit
vlan 12                          
private-vlan community
vlan 34
private-vlan isolated
vlan 300
private-vlan primary
private-vlan association 12,34
exit
int f0/1  /*connect to PC1*/
switchport mode private-vlan host
switchport private-vlan host-association 300 12
int f0/2  /*connect to PC2*/
switchport mode private-vlan host
switchport private-vlan host-association 300 12
int f0/5  /*connect to SERVER*/
switchport mode private-vlan promiscuous
switchport private-vlan mapping 300 12,34
end

SW2
config t
vtp mode transparent
vtp domain ccie
vtp password cciepass
int f0/19 /*connect to SW1*/
switchport trunk encapsulation dot1q
switchport mode trunk
exit
vlan 12
private-vlan community
vlan 34
private-vlan isolated
vlan 300
private-vlan primary
private-vlan association 12,34
exit
int f0/4   /*connect to PC4*/
switchport mode private-vlan host
switchport private-vlan host-association 300 12
int f0/3    /*connect to PC3*/
switchport mode private-vlan host
switchport private-vlan host-association 300 34
end

PC1
int f0/0
ip address 5.5.12.1 255.255.255.0
no shut

PC2
int f0/0
ip address 5.5.12.2 255.255.255.0
no shut

PC3
int f0/1
ip address 5.5.34.3 255.255.255.0
no shut

PC4
int f0/1
ip address 5.5.34.4 255.255.255.0
no shut

SERVER
int f0/0
ip address 5.5.12.5 255.255.255.0
ip address 5.5.34.5 255.255.255.0 secondary


结果result:
        PC1, PC2, PC4因为同在community所以可以互相Ping通,也能Ping通server。
        PC3只能ping通server。
        
        PC1,PC2,PC4 they can use ping command to community with each other, and so the server.
        PC3 only can ping through the server.



总结conclusion:
       一个private-vlan系统里面只能存在一个isolated vlan,但能存在很多community vlan。
       两个SWITCH设置成同一个private-vlan系统前,一定要有用trunk连接,并且vtp domain和password都要相同

       A private-vlan system was only can config an isolated vlan, but can config many community vlan.
       Before two switch connected to be one system, it must use trunk link, and the vtp domain and password must be same.























2012年10月20日星期六

pim dense-mode , sparse-mode , ssm


 dense-mode
    多播router之间用的是pim协议,host与多播router之间用的是IGMP协议,dense-mode是router收到multicast traffic之后,首先会检查下进端口的那个multcast source地址是否在IP TALBE上对应那个端口,如果对应,然后就四散到其他端口,如果有些机器不要的,会在收到后发送拒绝信息,然后上游的这个router就会隔一段时间再发过multicast traffic,前提是source还在发。就算没source发了,router都会发一个query给所有主机,问他们对哪些组感兴趣,然后运行了pimv1的都会回复。

ip pim dense-mode 的精简解析

 在学习多播的设置,但网上找了很久都没看到好一点的关于ip pim dense mode中文介绍,英文的呢又很长,没简单说明,我现在把自己的理解说一下,有错的地方请大家指正!


    dense-mode是最简单的,无需RP选举,在global模式输入ip multicast-routing,然后在各端口输入ip pim dense-mode即可。
    一个节点路由器会通过igmp来发现下游到底还要不要这种multicast,不要的话会马上通知上游节点别发多播信息来了。而再上一级的路由器收到这个拒绝信息之后,是不是永远都不再发多播信息来呢?不是的,他会在一段时间后再发过来,以防止这个时间间隔内下游新增的接收者收不到信息。这就好像,我上门推销产品,你开门说不要,但我过几天会再过来看你要不要,说不定你这时需要呢,那我就不会错过生意了。
    如果新加入了一个接收者,上游的路由器会定期通过igmp检测,来发现这个接受者需要哪个组的组播,先注册了,然后当组播信息来了之后,路由器就不会拒绝。
    组播源就像一个工厂,只管生产,但它是财大气粗,想生产啥就生产啥,不怕破产,一切销售都交给下层销售商(路由器)了,你的小区保安门口只要贴上“ip pim dense-mode”,销售商就会定期过来向你的保安介绍商品。你需要什么商品,保安会定时过来询问你,但前提是你告诉保安“我愿意经常接受你过来骚扰我家”(igmp协议),那当销售商来到刚好推销你想要的商品时,保安就会转发给你。