BGP Juniper vs Cisco vs MikroTik
set interfaces ge-0/0/0 unit 0 family inet address 10.22.1.41/30
set interfaces ge-0/0/0 unit 0 vlan-id 1554
set protocols bgp group internal type internal
set protocols bgp group internal local-address 10.22.1.41
set protocols bgp group internal neighbor 10.22.1.42 remote-as 137548
set policy-options policy-statement export-bgp term advertise-ip from protocol bgp
set policy-options policy-statement export-bgp term advertise-ip then next-hop self
set policy-options policy-statement export-bgp term advertise-ip then accept
set protocols bgp group internal export export-bgp
set routing-options static route 10.112.204.168/30 next-hop 10.22.1.42
This configures the interface with IP address 10.22.1.41 and VLAN ID 1554, sets up BGP
with the remote AS number 137548 and local address of 10.22.1.41,
and advertises the IP address 10.112.204.168/30 to the neighbor 10.22.1.42 via BGP.
Please note that this is a basic example and may need to be adjusted depending on your specific network requirements and topology.
------------------------------------------------------------------------
interface GigabitEthernet0/0
no shut
ip address 10.22.1.41 255.255.255.252
encapsulation dot1Q 1554
router bgp 65551
bgp router-id 10.22.1.41
neighbor 10.22.1.42 remote-as 137548
network 10.112.204.168 mask 255.255.255.252
This configures the interface with IP address 10.22.1.41 and VLAN ID 1554, sets up BGP with the local AS number 65551, remote AS number 137548,
and advertises the IP address 10.112.204.168/30 to the neighbor 10.22.1.42 via BGP.
Please note that this is a basic example and may need to be adjusted depending on your specific network requirements and topology.
It's also important to note that if you are using a version of IOS that doesn't support IP address on subinterfaces,
you can use the command "ip address 10.22.1.41 255.255.255.252 secondary" instead of "encapsulation dot1Q 1554"
-----------------------------------------------------------------------
/ip address add address=10.22.1.41/30 interface=ether1
/routing bgp instance set default as=65551 router-id=10.22.1.41
/routing bgp peer add remote-address=10.22.1.42 remote-as=137548
/ip route add dst-address=10.112.204.168/30 gateway=10.22.1.42
Comments
Post a Comment