[Contents] [Prev] [Next] [Index] [Report an Error]


Configuring Virtual Routers

This section provides examples of some of the more common virtual router tasks.

There are different uses of the virtual-router command. You can create or access VRs and VRFs in Global Configuration mode or map a VR to a domain map in Domain Map Configuration mode. Once you create a VR, you can continue to work in different command modes and configure the same user interface parameters as before the virtual router was created.



Note: For information on the many VR tasks you can configure, see the related chapter; for example, Configuring IP or Configuring BGP.

host1(config)#virtual-router western
host1:western(config)#

host1:western(config)#ip vrf eastern
Proceed with new VRF creation? [confirm]
host1:western(config-vrf)#virtual-router:eastern
host1:western:eastern(config)#

host1(config)#virtual-router western:eastern
host1:western:eastern(config)# 

host1:western:eastern(config)#?
  aaa                      Configure authentication, authorization, 
                         and accounting characteristics
  access-list              Configure an access list entry
  arp                      Configure a static ARP entry
  bandwidth                Configure slot-group bandwidth control
  banner                   Define a banner line
  baseline                 Configure baseline operations
  boot                     Configure boot time behavior
  bulkstats                Configure bulkstats parameters
  cbf                      Configure connection-based forwarding
  classifier-list          Configure a classifier list entry
  clns                     Configure CLNS characteristics
  clock                    Set the system's clock
  controller               Configure controller parameters
  crypto                   Configure cryptographic parameters
  disable-autosync         Disable automatic synchronization of 
                         redundant system controller file system
  disable-switch-on-error  Disable automatic switch to redundant system
                           controller upon software/hardware error
  enable                   Configure security related options
  end                      Exit Global Configuration mode
  exception                Configure core dump
  exclude-subsystem                Exclude copying a subsystem from the release
  exit                     Exit from the current command mode
  ftp-server               Configure FTP Server characteristics
  help                     Describe the interactive help system
  host                     Add/modify an entry to the host table
  hostname                 Set the host (system) name
  interface                Enter Interface Configuration mode
  ip                       Configure IP characteristics
  l2tp                     Configure L2TP parameters
  license                  Configure licenses
  line                     Enter Line Configuration mode
  log                      Configure logging settings
  macro                    Run a CLI macro
  map-list                 Create an NBMA static map
  memory                   Configure and administer memory operations
  mpls                     Configure MPLS global parameters
  no                       Negate a command or set its default(s)
  ntp                      Configure the Network Time Protocol
  policy-list              Enter Policy Configuration mode
  pppoe                    Configure PPPoE
  profile                  Specify a profile
  radius                   Configure RADIUS server
  rate-limit-profile       Enter rate limit profile configuration mode
  redundancy               Perform a redundancy configuration
  route-map                Configure a route map 
  router                   Configure a routing protocol
  rtr                      Configure rtr parameters
  service                  Configure system-level services
  set                      Configure
  sleep                    Make the Command Interface pause for a 
                         specified duration
  slot                     Configure and administer slot operation
  snmp-server              Configure SNMP parameters
  sscc                     The SSC Client
  telnet                   telnet daemon configuration
  timing                   Configure network timing
  traffic-shape-profile    Enter traffic shape profile configuration mode
  virtual-router           Specify a virtual router

host1:western:eastern(config)#

host1:western(config-vrf)#?
  exit          Exit from the current command mode
  export        Specify VRF export characteristics
  help          Describe the interactive help system
  import        Specify VRF import characteristics
  log           Configure logging settings
  macro         Run a CLI macro
  no            Negate a command or set its default(s)
  rd            Specify route distinguisher
  route-target  Specify VPN extended community Target
  sleep         Make the Command Interface pause for a
                 specified duration
host1:western(config-vrf)#

Example 1
VR with an IGP

host1(config)#virtual-router miami
host1:miami(config)#router ospf 5 
host1:miami(config-router)#

Example 2
VR with an EGP

host1(config)#virtual-router western
host1:western(config)#router bgp 359
host1:western(config-router)#

host1(config)#virtual-router boston
host1(config)#telnet listen port 23

host1#show virtual-router
Virtual Router : default
Virtual Router : thursday
Virtual Router : western
                 VRF : eastern
Virtual Router : boston
Virtual Router : miami
Virtual Router : northern
                 VRF : southern
host1# 

host1(config)#aaa domain-map jacksonville
host1(config-domain-map)#virtual-router western
host1(config-domain-map)# 

    aaa domain-map

host1-0-1-90(config)#aaa domain-map juniper.net vrouter_1
host1-0-1-90(config)#aaa domain-map none 
vrouter__all_purpose
host1-0-1-90(config)#aaa domain-map DEFAULT 
vrouter_all_purpose

    ip vrf

host1-00-02-80:boston(config)#ip vrf vpn-A

    telnet listen

host1(config)#virtual-router 3
host1(config)#telnet listen port 3223

    virtual-router



Note: See ERX Command Reference Guide for additional information.


[Contents] [Prev] [Next] [Index] [Report an Error]