²é¿´ÍêÕû°æ±¾: kurtʮһѧϰͬ²½¼Æ»®(½¡¢JUNIPER·ÓÉÆ÷BGPѧϰ)

°®Çéµ°¸â 2007-12-4 19:49

kurtʮһѧϰͬ²½¼Æ»®(½¡¢JUNIPER·ÓÉÆ÷BGPѧϰ)

kurtʮһѧϰͬ²½¼Æ»®(½¡¢JUNIPER·ÓÉÆ÷BGPѧϰ)
ÍØÆËͼ
[img]http://www.juniperbbs.net/images/Beijing2008/attachimg.gif[/img]  [img]http://www.juniperbbs.net/images/attachicons/image.gif[/img] [url=http://www.juniperbbs.net/attachment.php?aid=446&nothumb=yes][b]BGP.jpg[/b][/url] (54.82 KB)
[url=http://www.juniperbbs.net/thread-8376-1-1.html###zoom][img]http://www.juniperbbs.net/attachments/month_0710/20071007_d9f4ae52289ab0d13f815mdDnPHrKlTB.jpg.thumb.jpg[/img][/url]2007-10-7 12:34


ºÃÏñ»¹ÓеãÎÊÌ⣬²»Í¬µÄÓòÖ®¼äPING²»Í¨£¬½â¾öÎÊÌâÖУ¬Íû¸ßÊÖÖ¸µã£¡
root@Juniperbbs-Kurt-M7i# show
## Last changed: 2007-10-07 12:15:50 CST
version 8.3R1.5;
system {
    host-name Juniperbbs-Kurt-M7i;
    time-zone Asia/Shanghai;
    authentication-order password;
    root-authentication {
        encrypted-password "$1$s2DjtpA5$igH5IA8QSqoEVCE3lmiSa."; ## SECRET-DATA
    }
    login {
        user kurt {
            full-name juniperbbs-kurt;
            uid 1000;
            class super-user;
            authentication {
                encrypted-password "$1$4iVGvaSm$0J8bcDkqiEVixYsL99l.V1"; ## SECRET-DATA
            }
        }
    }
    services {
        ftp;
        telnet;
    }               
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any info;
            authorization info;
            archive size 2m files 10;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
    compress-configuration-files;
}
logical-routers {
    r11 {
        interfaces {
            fe-1/3/0 {
                unit 1 {
                    vlan-id 1;
                    family inet {
                        address 10.100.11.1/29;
                    }
                }
            }
        }
        protocols {
            bgp {
                group In-AS65123 {
                    type internal;
                    local-address 10.100.11.1;
                    neighbor 10.100.11.2;
                }
            }
        }
        routing-options {
            autonomous-system 65123;
        }
    }
    r12 {
        interfaces {
            fe-1/3/1 {
                unit 1 {
                    vlan-id 1;
                    family inet {
                        address 10.100.11.2/29;
                    }
                }
                unit 4 {
                    vlan-id 4;
                    family inet {
                        address 10.100.13.3/29;
                    }
                }
            }
        }
        protocols {
            bgp {
                group In-AS65123 {
                    type internal;
                    local-address 10.100.11.2;
                    neighbor 10.100.11.1;
                }
                group Ex-AS65356 {
                    type external;
                    peer-as 65356;
                    neighbor 10.100.13.5;
                }   
            }
        }
        routing-options {
            autonomous-system 65123;
        }
    }
    r23 {
        interfaces {
            fe-1/3/0 {
                unit 2 {
                    vlan-id 2;
                    family inet {
                        address 10.100.12.1/29;
                    }
                }
                unit 5 {
                    vlan-id 5;
                    family inet {
                        address 10.100.13.4/29;
                    }
                }
            }
        }           
        protocols {
            bgp {
                group In-AS65234 {
                    type internal;
                    local-address 10.100.12.1;
                    neighbor 10.100.12.2;
                }
                group Ex-AS65356 {
                    type external;
                    peer-as 65356;
                    neighbor 10.100.13.6;
                }
            }
        }
        routing-options {
            autonomous-system 65234;
        }
    }
    r24 {
        interfaces {
            fe-1/3/1 {
                unit 2 {
                    vlan-id 2;
                    family inet {
                        address 10.100.12.2/29;
                    }
                }
            }
        }
        protocols {
            bgp {
                group In-AS65234 {
                    type internal;
                    local-address 10.100.12.2;
                    neighbor 10.100.12.1;
                }
            }
        }
        routing-options {
            autonomous-system 65234;
        }
    }
    r35 {
        interfaces {
            fe-1/3/0 {
                unit 3 {
                    vlan-id 3;
                    family inet {
                        address 10.100.13.1/29;
                    }
                }
                unit 4 {
                    vlan-id 4;
                    family inet {
                        address 10.100.13.5/29;
                    }
                }
            }
        }
        protocols {
            bgp {
                group In-AS65356 {
                    type internal;
                    local-address 10.100.13.1;
                    neighbor 10.100.13.2;
                }
                group Ex-AS65123 {
                    type external;
                    peer-as 65123;
                    neighbor 10.100.13.3;
                }
            }
        }
        routing-options {
            autonomous-system 65356;
        }
    }
    r36 {
        interfaces {
            fe-1/3/1 {
                unit 3 {
                    vlan-id 3;
                    family inet {
                        address 10.100.13.2/29;
                    }
                }
                unit 5 {
                    vlan-id 5;
                    family inet {
                        address 10.100.13.6/29;
                    }
                }   
            }
        }
        protocols {
            bgp {
                group In-AS65356 {
                    type internal;
                    local-address 10.100.13.2;
                    neighbor 10.100.13.1;
                }
                group Ex-AS65234 {
                    type external;
                    peer-as 65234;
                    neighbor 10.100.13.4;
                }
            }
        }
        routing-options {
            autonomous-system 65356;
        }
    }
}
chassis {
    alarm {         
        management-ethernet {
            link-down ignore;
        }
    }
}
interfaces {
    fe-1/3/0 {
        vlan-tagging;
    }
    fe-1/3/1 {
        vlan-tagging;
    }
}

root@Juniperbbs-Kurt-M7i> show bgp neighbor logical-router r11  
Peer: 10.100.11.2+179 AS 65123 Local: 10.100.11.1+2019 AS 65123
  Type: Internal    State: Established    Flags: <Sync>
  Last State: OpenConfirm   Last Event: RecvKeepAlive
  Last Error: Cease
  Options: <Preference LocalAddress Refresh>
  Local Address: 10.100.11.1 Holdtime: 90 Preference: 170
  Number of flaps: 2
  Error: 'Cease' Sent: 1 Recv: 1
  Peer ID: 10.100.11.2      Local ID: 10.100.11.1      Active Holdtime: 90
  Keepalive Interval: 30         Peer index: 0   
  BFD: disabled, down
  NLRI advertised by peer: inet-unicast
  NLRI for this session: inet-unicast
  Peer supports Refresh capability (2)
  Table inet.0 Bit: 10000
    RIB State: BGP restart is complete
    Send state: in sync
    Active prefixes:              0
    Received prefixes:            0
    Suppressed due to damping:    0
    Advertised prefixes:          0
  Last traffic (seconds): Received 11   Sent 4    Checked 3   
  Input messages:  Total 127    Updates 0       Refreshes 0     Octets 2441
  Output messages: Total 129    Updates 0       Refreshes 0     Octets 2503
  Output Queue[0]: 0

root@Juniperbbs-Kurt-M7i> show bgp neighbor logical-router r12   
Peer: 10.100.11.1+2019 AS 65123 Local: 10.100.11.2+179 AS 65123
  Type: Internal    State: Established    Flags: <Sync>
  Last State: OpenConfirm   Last Event: RecvKeepAlive
  Last Error: Cease
  Options: <Preference LocalAddress Refresh>
  Local Address: 10.100.11.2 Holdtime: 90 Preference: 170
  Number of flaps: 2
  Error: 'Cease' Sent: 1 Recv: 1
  Peer ID: 10.100.11.1      Local ID: 10.100.11.2      Active Holdtime: 90
  Keepalive Interval: 30         Peer index: 0   
  BFD: disabled, down
  NLRI advertised by peer: inet-unicast
  NLRI for this session: inet-unicast
  Peer supports Refresh capability (2)
  Table inet.0 Bit: 10000
    RIB State: BGP restart is complete
    Send state: in sync
    Active prefixes:              0
    Received prefixes:            0
    Suppressed due to damping:    0
    Advertised prefixes:          0
  Last traffic (seconds): Received 18   Sent 25   Checked 7   
  Input messages:  Total 119    Updates 0       Refreshes 0     Octets 2287
  Output messages: Total 120    Updates 0       Refreshes 0     Octets 2306
  Output Queue[0]: 0

Peer: 10.100.13.5+179 AS 65356 Local: 10.100.13.3 AS 65123
  Type: External    State: Connect        Flags: <TryConnect>
  Last State: Connect       Last Event: ConnectRetry
  Last Error: None
  Options: <Preference PeerAS Refresh>
  Holdtime: 90 Preference: 170
  Number of flaps: 0

root@Juniperbbs-Kurt-M7i> show bgp neighbor logical-router r23   
Peer: 10.100.12.2+179 AS 65234 Local: 10.100.12.1+2412 AS 65234
  Type: Internal    State: Established    Flags: <Sync>
  Last State: OpenConfirm   Last Event: RecvKeepAlive
  Last Error: Cease
  Options: <Preference LocalAddress Refresh>
  Local Address: 10.100.12.1 Holdtime: 90 Preference: 170
  Number of flaps: 2
  Error: 'Cease' Sent: 2 Recv: 1
  Peer ID: 10.100.12.2      Local ID: 10.100.12.1      Active Holdtime: 90
  Keepalive Interval: 30         Peer index: 0   
  BFD: disabled, down
  NLRI advertised by peer: inet-unicast
  NLRI for this session: inet-unicast
  Peer supports Refresh capability (2)
  Table inet.0 Bit: 10000
    RIB State: BGP restart is complete
    Send state: in sync
    Active prefixes:              0
    Received prefixes:            0
    Suppressed due to damping:    0
    Advertised prefixes:          0
  Last traffic (seconds): Received 8    Sent 1    Checked 28  
  Input messages:  Total 132    Updates 0       Refreshes 0     Octets 2536
  Output messages: Total 138    Updates 0       Refreshes 0     Octets 2702
  Output Queue[0]: 0

Peer: 10.100.13.6+179 AS 65356 Local: 10.100.13.4 AS 65234
  Type: External    State: Connect        Flags: <>
  Last State: Active        Last Event: ConnectRetry
  Last Error: None
  Options: <Preference PeerAS Refresh>
  Holdtime: 90 Preference: 170
  Number of flaps: 0

root@Juniperbbs-Kurt-M7i> show bgp neighbor logical-router r24   
Peer: 10.100.12.1+2412 AS 65234 Local: 10.100.12.2+179 AS 65234
  Type: Internal    State: Established    Flags: <Sync>
  Last State: OpenConfirm   Last Event: RecvKeepAlive
  Last Error: Cease
  Options: <Preference LocalAddress Refresh>
  Local Address: 10.100.12.2 Holdtime: 90 Preference: 170
  Number of flaps: 2
  Error: 'Cease' Sent: 1 Recv: 1
  Peer ID: 10.100.12.1      Local ID: 10.100.12.2      Active Holdtime: 90
  Keepalive Interval: 30         Peer index: 0   
  BFD: disabled, down
  NLRI advertised by peer: inet-unicast
  NLRI for this session: inet-unicast
  Peer supports Refresh capability (2)
  Table inet.0 Bit: 10000
    RIB State: BGP restart is complete
    Send state: in sync
    Active prefixes:              0
    Received prefixes:            0
    Suppressed due to damping:    0
    Advertised prefixes:          0
  Last traffic (seconds): Received 11   Sent 18   Checked 46  
  Input messages:  Total 109    Updates 0       Refreshes 0     Octets 2097
  Output messages: Total 109    Updates 0       Refreshes 0     Octets 2097
  Output Queue[0]: 0
                    
root@Juniperbbs-Kurt-M7i> show bgp neighbor logical-router r35   
Peer: 10.100.13.2+4662 AS 65356 Local: 10.100.13.1+179 AS 65356
  Type: Internal    State: Established    Flags: <Sync>
  Last State: OpenConfirm   Last Event: RecvKeepAlive
  Last Error: Cease
  Options: <Preference LocalAddress Refresh>
  Local Address: 10.100.13.1 Holdtime: 90 Preference: 170
  Number of flaps: 2
  Error: 'Cease' Sent: 2 Recv: 1
  Peer ID: 10.100.13.2      Local ID: 10.100.13.1      Active Holdtime: 90
  Keepalive Interval: 30         Peer index: 0   
  BFD: disabled, down
  NLRI advertised by peer: inet-unicast
  NLRI for this session: inet-unicast
  Peer supports Refresh capability (2)
  Table inet.0 Bit: 10000
    RIB State: BGP restart is complete
    Send state: in sync
    Active prefixes:              0
    Received prefixes:            0
    Suppressed due to damping:    0
    Advertised prefixes:          0
  Last traffic (seconds): Received 9    Sent 1    Checked 0   
  Input messages:  Total 98     Updates 0       Refreshes 0     Octets 1888
  Output messages: Total 98     Updates 0       Refreshes 0     Octets 1888
  Output Queue[0]: 0

Peer: 10.100.13.3+179 AS 65123 Local: 10.100.13.5 AS 65356
  Type: External    State: Connect        Flags: <>
  Last State: Connect       Last Event: ConnectRetry
  Last Error: None
  Options: <Preference PeerAS Refresh>
  Holdtime: 90 Preference: 170
  Number of flaps: 0

root@Juniperbbs-Kurt-M7i> show bgp neighbor logical-router r36   
Peer: 10.100.13.1+179 AS 65356 Local: 10.100.13.2+4662 AS 65356
  Type: Internal    State: Established    Flags: <Sync>
  Last State: OpenConfirm   Last Event: RecvKeepAlive
  Last Error: Cease
  Options: <Preference LocalAddress Refresh>
  Local Address: 10.100.13.2 Holdtime: 90 Preference: 170
  Number of flaps: 2
  Error: 'Cease' Sent: 1 Recv: 1
  Peer ID: 10.100.13.1      Local ID: 10.100.13.2      Active Holdtime: 90
  Keepalive Interval: 30         Peer index: 0   
  BFD: disabled, down
  NLRI advertised by peer: inet-unicast
  NLRI for this session: inet-unicast
  Peer supports Refresh capability (2)
  Table inet.0 Bit: 10000
    RIB State: BGP restart is complete
    Send state: in sync
    Active prefixes:              0
    Received prefixes:            0
    Suppressed due to damping:    0
    Advertised prefixes:          0
  Last traffic (seconds): Received 8    Sent 16   Checked 52  
  Input messages:  Total 132    Updates 0       Refreshes 0     Octets 2510
  Output messages: Total 139    Updates 0       Refreshes 0     Octets 2721
  Output Queue[0]: 0

Peer: 10.100.13.4+179 AS 65234 Local: 10.100.13.6 AS 65356
  Type: External    State: Connect        Flags: <>
  Last State: Connect       Last Event: ConnectRetry
  Last Error: None
  Options: <Preference PeerAS Refresh>
  Holdtime: 90 Preference: 170
  Number of flaps: 0
  
root@Juniperbbs-Kurt-M7i> show route logical-router r11   

inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.100.11.0/29     *[Direct/0] 01:03:50
                    > via fe-1/3/0.1
10.100.11.1/32     *[Local/0] 01:03:50
                      Local via fe-1/3/0.1

root@Juniperbbs-Kurt-M7i> show route logical-router r12   

inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.100.11.0/29     *[Direct/0] 01:00:11
                    > via fe-1/3/1.1
10.100.11.2/32     *[Local/0] 01:00:11
                      Local via fe-1/3/1.1
10.100.13.0/29     *[Direct/0] 00:45:19
                    > via fe-1/3/1.4
10.100.13.3/32     *[Local/0] 00:45:19
                      Local via fe-1/3/1.4
Ò³: [1]
²é¿´ÍêÕû°æ±¾: kurtʮһѧϰͬ²½¼Æ»®(½¡¢JUNIPER·ÓÉÆ÷BGPѧϰ)