|
楼主 |
发表于 2004-8-28 11:57:05
|
显示全部楼层
大家别嫌我粘贴的多,,多看这些东西有好处的。。。网吧那些小哥们可能看不下去。。喜欢juniper的朋友可以贴出你们的输出。。。互相研究一下究竟作为fxp的管理口能够应用junos多少的功能root--- JUNOS 6.2R2.4 built 2004-03-19 13:39:35 UTCTerminal type? [vt100] [3g[24;9HH[24;17HH[24;25HH[24;33HH[24;41HH[24;49HH[24;57HH[24;65HH[24;73HHroot@M40% cliroot@M40> show configuration version 6.2R2.4;logical-routers { M10 { interfaces { fxp2 { unit 1 { family inet { address 172.16.100.1/24; } } } } }}system { host-name M40; login { user juniper { uid 2000; class super-user; authentication { encrypted-password "$1$KAwX/fog$cH9hyvokugJlnllbHA1ir0"; # SECRET-DATA---(more)--- } } } services { telnet; }}interfaces { fxp0 { unit 0 { family inet { address 10.37.144.132/21; } } } fxp1 { unit 0 { family inet { filter { input nat; } address 192.168.1.200/24; }---(more 42%)--- } } fxp2 { unit 0 { family inet { address 221.215.40.34/30; } } }}firewall { filter nat { term nat { from { source-address { 192.168.1.0/24; } } then accept; } }}services {---(more 64%)--- stateful-firewall { rule nat { match-direction input; term nat { from { source-address { 192.168.1.0/24; } } then { accept; } } } } nat { pool nat { address 221.215.40.34/32; port automatic; } rule nat { match-direction input; term nat {---(more 85%)--- from { source-address { 192.168.1.0/24; } } then { translated { source-pool nat; translation-type source dynamic; } } } } }}root@M40> show logi og givc ^syntax error, expecting .root@M40> show logivc c ^syntax error, expecting .root@M40> show logic show log run cnf onfigure Entering configuration mode[edit]root@M40# show logical-routers M10 { interfaces { fxp2 { unit 1 { family inet { address 172.16.100.1/24; } } } }}[edit]root@M40# show ver ^syntax error.root@M40# show ver ^syntax error.[edit]root@M40# run show version Hostname: M40Model: oliveJUNOS Base OS boot [6.2R2.4]JUNOS Base OS Software Suite [6.2R2.4]JUNOS Kernel Software Suite [6.2R2.4]JUNOS Packet Forwarding Engine Support (M20/M40) [6.2R2.4]JUNOS Routing Software Suite [6.2R2.4]JUNOS Online Documentation [6.2R2.4][edit]root@M40# exit Exiting configuration moderoot@M40> q request system show interfaces Physical interface: dsc, Enabled, Physical link is Up Interface index: 5, SNMP ifIndex: 5 Type: Software-Pseudo, MTU: Unlimited Device flags : Present Running Interface flags: SNMP-Traps Link flags : None Last flapped : Never Input packets : 0 Output packets: 0Physical interface: fxp0, Enabled, Physical link is Down Interface index: 1, SNMP ifIndex: 1 Type: Ethernet, Link-level type: Ethernet, MTU: 1514, Speed: 10m Device flags : Present Running No-Carrier Interface flags: Hardware-Down SNMP-Traps Link type : Half-Duplex Current address: 00:20:35:e7:c7:67, Hardware address: 00:20:35:e7:c7:67 Last flapped : Never Input packets : 0 Output packets: 0 Logical interface fxp0.0 (Index 64) (SNMP ifIndex 13) Flags: Device-Down SNMP-Traps Encapsulation: ENET2---(more)--- Bandwidth: 0 Input packets : 0 Output packets: 0 Protocol inet, MTU: 1500 Flags: Is-Primary Addresses, Flags: Dest-route-down Is-Default Is-Preferred Is-Primary Destination: 10.37.144/21, Local: 10.37.144.132, Broadcast: 10.37.151.255Physical interface: fxp1, Enabled, Physical link is Down Interface index: 2, SNMP ifIndex: 2 Type: Ethernet, Link-level type: Ethernet, MTU: 1514, Speed: 10m Device flags : Present Running No-Carrier Interface flags: Hardware-Down SNMP-Traps Link type : Half-Duplex Current address: 00:20:35:e7:b2:b1, Hardware address: 00:20:35:e7:b2:b1 Last flapped : Never Input packets : 0 Output packets: 0 Logical interface fxp1.0 (Index 65) (SNMP ifIndex 14) Flags: Device-Down SNMP-Traps Encapsulation: ENET2 Bandwidth: 0---(more 29%)--- Input packets : 0 Output packets: 0 Protocol inet, MTU: 1500 Flags: None Addresses, Flags: Dest-route-down Is-Preferred Is-Primary Destination: 192.168.1/24, Local: 192.168.1.200, Broadcast: 192.168.1.255Physical interface: fxp2, Enabled, Physical link is Down Interface index: 3, SNMP ifIndex: 3 Type: Ethernet, Link-level type: Ethernet, MTU: 1514, Speed: 10m Device flags : Present Running No-Carrier Interface flags: Hardware-Down SNMP-Traps Link type : Half-Duplex Current address: 00:20:35:e7:b2:b6, Hardware address: 00:20:35:e7:b2:b6 Last flapped : Never Input packets : 0 Output packets: 0 Logical interface fxp2.0 (Index 66) (SNMP ifIndex 15) Flags: Device-Down SNMP-Traps Encapsulation: ENET2 Bandwidth: 0 Input packets : 0 ---(more 44%)--- Output packets: 0 Protocol inet, MTU: 1500 Flags: None Addresses, Flags: Dest-route-down Is-Preferred Is-Primary Destination: 221.215.40.32/30, Local: 221.215.40.34, Broadcast: 221.215.40.35Physical interface: gre, Enabled, Physical link is Up Interface index: 129, SNMP ifIndex: 8 Type: GRE, Link-level type: GRE, MTU: Unlimited, Speed: Unlimited Device flags : Present Running Interface flags: Point-To-Point SNMP-Traps Input packets : 0 Output packets: 0Physical interface: ipip, Enabled, Physical link is Up Interface index: 130, SNMP ifIndex: 9 Type: IPIP, Link-level type: IP-over-IP, MTU: Unlimited, Speed: Unlimited Device flags : Present Running Interface flags: SNMP-Traps Input packets : 0 Output packets: 0---(more 59%)--- Physical interface: lo0, Enabled, Physical link is Up Interface index: 6, SNMP ifIndex: 6 Type: Loopback, MTU: Unlimited Device flags : Present Running Loopback Interface flags: SNMP-Traps Link flags : None Last flapped : Never Input packets : 0 Output packets: 0 Logical interface lo0.16383 (Index 68) (SNMP ifIndex 22) Flags: SNMP-Traps Encapsulation: Unspecified Input packets : 0 Output packets: 0 Protocol inet, MTU: Unlimited Flags: NonePhysical interface: lsi, Enabled, Physical link is Up Interface index: 4, SNMP ifIndex: 4 Type: Software-Pseudo, Link-level type: LSI, MTU: 1496, Speed: Unlimited Device flags : Present Running Interface flags: SNMP-Traps Link flags : None---(more 74%)--- Last flapped : Never Input packets : 0 Output packets: 0Physical interface: mtun, Enabled, Physical link is Up Interface index: 133, SNMP ifIndex: 12 Type: Multicast-GRE, Link-level type: GRE, MTU: Unlimited, Speed: Unlimited Device flags : Present Running Interface flags: SNMP-Traps Input packets : 0 Output packets: 0Physical interface: pimd, Enabled, Physical link is Up Interface index: 132, SNMP ifIndex: 11 Type: PIMD, Link-level type: PIM-Decapsulator, MTU: Unlimited, Speed: Unlimited Device flags : Present Running Interface flags: SNMP-Traps Input packets : 0 Output packets: 0Physical interface: pime, Enabled, Physical link is Up Interface index: 131, SNMP ifIndex: 10---(more 89%)--- Type: PIME, Link-level type: PIM-Encapsulator, MTU: Unlimited, Speed: Unlimited Device flags : Present Running Interface flags: SNMP-Traps Input packets : 0 Output packets: 0Physical interface: tap, Enabled, Physical link is Up Interface index: 128, SNMP ifIndex: 7 Type: Software-Pseudo, Link-level type: Interface-Specific, MTU: Unlimited, Speed: Unlimited Device flags : Present Running Interface flags: SNMP-Traps Link flags : None Last flapped : Never Input packets : 0 Output packets: 0root@M40> show interfaces terse Interface Admin Link Proto Local Remotedsc up up fxp0 up downfxp0.0 up down inet 10.37.144.132/21fxp1 up downfxp1.0 up down inet 192.168.1.200/24fxp2 up downfxp2.0 up down inet 221.215.40.34/30gre up up ipip up up lo0 up up lo0.16383 up up inet lsi up up mtun up up pimd up up pime up up tap up up root@M40> conft ^unknown command.root@M40> configure Entering configuration mode[edit]root@M40# set interfaces fx0 p1 unit 0 ?Possible completions: Execute this command accounting-profile Accounting profile name+ apply-groups Groups from which to inherit configuration data+ apply-groups-except Don't inherit configuration data from these groups bandwidth Logical unit bandwidth (informational only) description Text description of the interface disable Disable this logical interface encapsulation Logical link-layer encapsulation> family Protocol family no-traps Don't enable SNMP notifications on state changes passive-monitor-mode Use interface to tap packets from another router traps Enable SNMP notifications on state changes vlan-id Virtual LAN identifier value for 802.1Q VLAN tags | Pipe through a command[edit]root@M40# set interfaces fxp1 unit 0 family inetroot@M40# set interfaces fxp1 unit 0 family inet ?Possible completions: Execute this command> address Interface address/destination prefix+ apply-groups Groups from which to inherit configuration data+ apply-groups-except Don't inherit configuration data from these groups> filter Packet filtering no-redirects Do not redirect traffic> policer Interface policing primary Candidate for primary interface in system | Pipe through a command[edit]root@M40# set interfaces fxp1 unit 0 family inet ?Possible completions:> ccc Circuit cross-connect parameters> inet IPv4 parameters> inet6 IPv6 protocol parameters> iso OSI ISO protocol parameters> mpls MPLS protocol parameters> tcc Translational cross-connect parameters> vpls Virtual Private LAN Service (VPLS) parameters[edit]root@M40# set interfaces fxp1 unit 0 family iso ?Possible completions: Execute this command> address Interface address+ apply-groups Groups from which to inherit configuration data+ apply-groups-except Don't inherit configuration data from these groups | Pipe through a command[edit]root@M40# set interfaces fxp1 unit 0 family iso address ?Possible completions: Interface address[edit]root@M40# set interfaces fxp1 unit 0 family iso address inetroot@M40# set interfaces fxp1 unit 0 family inet ?Possible completions:> inet IPv4 parameters> inet6 IPv6 protocol parameters[edit]root@M40# set interfaces fxp1 unit 0 family inet ?Possible completions: Execute this command> address Interface address/destination prefix+ apply-groups Groups from which to inherit configuration data+ apply-groups-except Don't inherit configuration data from these groups> filter Packet filtering no-redirects Do not redirect traffic> policer Interface policing primary Candidate for primary interface in system | Pipe through a command[edit]root@M40# set interfaces fxp1 unit 0 family inet file ^syntax error.root@M40# set interfaces fxp1 unit 0 family inet file policer ?Possible completions:+ apply-groups Groups from which to inherit configuration data+ apply-groups-except Don't inherit configuration data from these groups input Name of policer applied to received packets output Name of policer applied to transmitted packets[edit]root@M40# set interfaces fxp1 unit 0 family inet policer input ?Possible completions: Name of policer applied to received packets[edit]root@M40# set interfaces fxp1 unit 0 family inet policer input nat ?Possible completions: Execute this command+ apply-groups Groups from which to inherit configuration data+ apply-groups-except Don't inherit configuration data from these groups output Name of policer applied to transmitted packets | Pipe through a command[edit]root@M40# set interfaces fxp1 unit 0 family inet policer input nat ... [edit]root@M40# exit Exiting configuration moderoot@M40> request system reboot Reboot the system ? [yes,no] (no) yes shutdown: [pid 2527]Shutdown NOW!root@M40> *** FINAL System shutdown message from root@M40 *** System going down IMMEDIATELY Jan 16 12:44:55 init: syslogd (PID 2062) exited with status=0 Normal ExitWaiting (max 60 seconds) for system process `bufdaemon' to stop...stoppedWaiting (max 60 seconds) for system process `syncer' to stop...stoppedsyncing disks... 3 3 1 doneUptime: 5m5sata0: Spinning down devices. Please wait...ata2: Spinning down devices. Please wait...Rebooting...Console: serial portBIOS drive C: is disk0BIOS 639kB/261104kB available memoryFreeBSD/i386 bootstrap loader, Revision 0.8(builder@iaculi.juniper.net, Fri Mar 19 13:30:21 GMT 2004)|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\Loading /boot/defaults/loader.conf |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/kernel text=0x496b56 /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|data=0x2b2f4+0x4b36c /-\|/-\|/-\|/-\|/-\|/-syms=[0x4+0x3f350\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+0x4+0x4a629\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\] Loader Quick Help ----------------- The boot order is PCMCIA or floppy -> Flash -> Disk -> Lan -> back to PCMCIA or floppy. Typing reboot from the command prompt will cycle through the boot devices. On some models, you can set the next boot device using the nextboot command: nextboot compact-flash | diskFor more information, use the help command: help Hit [Enter] to boot immediately, or space bar for command prompt.Booting [kernel] in 9 seconds... Booting [kernel] in 8 seconds... Booting [kernel] in 7 seconds... Booting [kernel] in 6 seconds... Booting [kernel] in 5 seconds... Booting [kernel] in 4 seconds... Booting [kernel] in 3 seconds... Booting [kernel] in 2 seconds... Booting [kernel] in 1 second... Booting [kernel]... |/-\|/-\Copyright ?1996-2001, Juniper Networks, Inc.All rights reserved.Copyright ?1992-2001 The FreeBSD Project.Copyright ?1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved.JUNOS 6.2R2.4 #0: 2004-03-19 13:39:35 UTC builder@iaculi.juniper.net:/build/iaculi-c/6.2R2.4/obj-i386/sys/compile/JUNIPERTimecounter "i8254" frequency 1193182 HzTimecounter "TSC" frequency 3153726912 HzCPU: Pentium 4 (3153.73-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbffreal memory = 268419072 (262128K bytes)sio0: gdb debugging portavail memory = 254058496 (248104K bytes)Olive CPUPreloaded elf kernel "kernel" at 0xc0699000.DEVFS: ready for devicesmd0: Malloc disknpx0: on motherboardnpx0: INT 16 interfacepcib0: on motherboardpci0: on pcib0pci0: (vendor=0x8086, dev=0x2551) at 0.1pcib1: mem 0xf4000000-0xf7ffffff at device 1.0 on pci0pci1: on pcib1pci1: at 0.0 irq 11pci0: at 29.0 irq 11pci0: at 29.1 irq 12pci0: at 29.2 irq 10pci0: at 29.7 irq 9pcib2: at device 30.0 on pci0pci2: on pcib2pci2: (vendor=0x1102, dev=0x0002) at 1.0 irq 6pci2: (vendor=0x1102, dev=0x7002) at 1.1fxp0: port 0xb400-0xb41f mem 0xec800000-0xec8fffff,0xf1000000-0xf1000fff irq 9 at device 2.0 on pci2pci2: (vendor=0x14e4, dev=0x4401) at 5.0 irq 10fxp1: port 0xb000-0xb01f mem 0xeb800000-0xeb8fffff,0xf0000000-0xf0000fff irq 5 at device 6.0 on pci2fxp2: port 0xa800-0xa81f mem 0xeb000000-0xeb0fffff,0xef000000-0xef000fff irq 10 at device 7.0 on pci2isab0: at device 31.0 on pci0isa0: on isab0atapci0: port 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 irq 10 at device 31.1 on pci0ata0: at 0x1f0 irq 14 on atapci0fdc0: direction bit not setfdc0: cmd 3 failed at out byte 1 of 3ata2 at port 0x170-0x177,0x376 irq 15 on isa0atkbdc0: at port 0x60,0x64 on isa0atkbd0: flags 0x1 irq 1 on atkbdc0vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0sc0: at flags 0x100 on isa0sc0: VGA sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0sio0: type 16550A, consolesio1: configured irq 5 not in bitmap of probed irqs 0sio2 at port 0x2f8-0x2ff irq 3 on isa0sio2: type 16550Asio3: configured irq 7 not in bitmap of probed irqs 0fxp0: Ethernet address 00:20:35:e7:c7:67fxp1: Ethernet address 00:20:35:e7:b2:b1fxp2: Ethernet address 00:20:35:e7:b2:b6DEVFS: ready to runad0: 1547MB [3145/16/63] at ata0-master using PIO3ata2-slave: CDROM device - NO DRIVER!Mounting root from ufs:/dev/ad0s1aMounted jbase package on /dev/vn0...Mounted jkernel package on /dev/vn1...Mounted jpfe package on /dev/vn2...Mounted jdocs package on /dev/vn3...Mounted jroute package on /dev/vn4...swapon: adding /dev/ad0s1b as swap deviceAutomatic reboot in progress.../dev/ad0s1a: FILESYSTEM CLEAN; SKIPPING CHECKS/dev/ad0s1a: clean, 77930 free /dev/ad0s1e: FILESYSTEM CLEAN; SKIPPING CHECKS/dev/ad0s1e: clean, 12110 free (26 frags, 9738 blocks, 0.0% fragmentation)(14 frags, 1512 blocks, 0.1% fragmentation)(26 frags, 9738 blocks, 0.0% fragmentation)/dev/ad0s1f: FILESYSTEM CLEAN; SKIPPING CHECKS/dev/ad0s1f: clean, 932884 free (308 frags, 116572 blocks, 0.0% fragmentation)tunefs: soft updates setCreating initial configuration...mgd: commit completeSetting initial options: debugger_on_panic=NO debugger_on_break=NO.Doing initial network setup:.Initial interface configuration:additional daemons: syslogd.checking for core dump...savecore: Router rebooting after a normal shutdown....Additional routing options:.Doing additional network setup:.Starting final network daemons:.setting ldconfig path: /usr/libstarting standard daemons: cron.Initial rc.i386 initialization: microcode kld.rc.i386 configuring syscons:.Local package initialization:.starting local daemons:.Wed Jan 16 12:46:40 UTC 2002M40 (ttyd0)login: M40 (ttyd0)login: M40 (ttyd0)login: M40 (ttyd0)login: 谢谢大家 希望大家提供自己junos的屏幕信息,配置以便于做研究学习 |
|