<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://jal.tw/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>脆笛酥的家 - juniper:junos</title>
        <description></description>
        <link>https://jal.tw/</link>
        <lastBuildDate>Wed, 29 Apr 2026 14:42:04 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://jal.tw/_media/wiki:dokuwiki.svg</url>
            <title>脆笛酥的家</title>
            <link>https://jal.tw/</link>
        </image>
        <item>
            <title>basic-config</title>
            <link>https://jal.tw/juniper:junos:basic-config?rev=1352824505&amp;do=diff</link>
            <description>Juniper JUNOS Bacic Configuration

Juniper JUNOS 乾淨的系統基本要設定的東西

Basic Config


system {
    host-name HOSTNAME_you_want;
    domain-name IF_NEED;
    time-zone Asia/Taipei;
    name-server {
        2001:4860:4860::8888;
        8.8.8.8;
        8.8.4.4;
    }
    syslog {
        user * {
            any emergency;
        }
        host 1.1.1.1 {
            any any;
            facility-override local5;
        }
        file messages {
            any notice;
            authorization info;
…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Nov 2012 16:35:05 +0000</pubDate>
        </item>
        <item>
            <title>delete-interface</title>
            <link>https://jal.tw/juniper:junos:delete-interface?rev=1352796983&amp;do=diff</link>
            <description>刪除所有 Interface

純粹個人用，不要問為什麼...

Command


delete interfaces ge-0/0/0
delete interfaces ge-0/0/1
delete interfaces ge-0/0/2
delete interfaces ge-0/0/3
delete interfaces ge-0/0/4
delete interfaces ge-0/0/5
delete interfaces ge-0/0/6
delete interfaces ge-0/0/7
delete interfaces ge-0/0/8
delete interfaces ge-0/0/9
delete interfaces ge-0/0/10
delete interfaces ge-0/0/11
delete interfaces ge-0/0/12
delete interfaces ge-0/0/13
delete interfaces ge-0/0/14
delete interfaces ge-0/0/15
delete interfaces g…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Nov 2012 08:56:23 +0000</pubDate>
        </item>
        <item>
            <title>full-reset</title>
            <link>https://jal.tw/juniper:junos:full-reset?rev=1353398190&amp;do=diff</link>
            <description>JUNOS FULL RESET

Pure reset to “Factory default”, means doesn&#039;t have root password.

Command

	*  其實這指令一直感覺不是很 OK，因為都清得不是很乾淨

root&gt; request system zeroize
warning: System will be rebooted and may not boot without configuration
Erase all data, including configuration and log files? [yes,no] (no) yes

warning: zeroizing re0

.........
.........</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 20 Nov 2012 07:56:30 +0000</pubDate>
        </item>
        <item>
            <title>led-alarm</title>
            <link>https://jal.tw/juniper:junos:led-alarm?rev=1352786311&amp;do=diff</link>
            <description>JUNOS Alarm LED 燈號

因為有幾個狀況會導致它紅色或橘色，有些東西處理後，它就會變回綠色了。

Managerment Port

在有獨立 Management Port 的機器 (EX, J-router, M-router)，如果Manager 沒有 Link UP, LED 就會顯示紅色</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Nov 2012 05:58:31 +0000</pubDate>
        </item>
        <item>
            <title>link-agg</title>
            <link>https://jal.tw/juniper:junos:link-agg?rev=1352605515&amp;do=diff</link>
            <description>JUNOS Link Aggregation

Command

	*  Static Link Aggregation(without lacp)

set chassis aggregated-devices ethernet device-count 10
set interfaces ge-0/0/0 ether-options 802.3ad ae0
set interfaces ge-0/0/1 ether-options 802.3ad ae0


	*  LACP/802.3ad, this mode can compatible with VMware ESXi Route based on IP hash</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 11 Nov 2012 03:45:15 +0000</pubDate>
        </item>
        <item>
            <title>routing-instances</title>
            <link>https://jal.tw/juniper:junos:routing-instances?rev=1352821966&amp;do=diff</link>
            <description>JUNOS routing-instances

其概念有一點點類似大型 Router 的 logical-routers，不過 routing-instances 沒有像 logical-routers 可以切割的那麼完整，應付小型的分割其實是足夠的。

instance-type

	*  forwarding
		*  Forwarding instance</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Nov 2012 15:52:46 +0000</pubDate>
        </item>
        <item>
            <title>routing-options</title>
            <link>https://jal.tw/juniper:junos:routing-options?rev=1352824775&amp;do=diff</link>
            <description>JUNOS Routing Options

static route rib


routing-options {
    rib inet.0 {
        static {
            route 0.0.0.0/0 next-hop 1.1.1.1;
            route 10.38.0.0/16 next-hop 10.255.255.1;
        }
    }
    rib inet6.0 {
        static {
            route ::/0 next-hop 2001:b030:ffff::1;
            route 2001:b030:ffff:38::/64 next-hop 2001:b030:ffff:f5::1;
        }
    }
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Nov 2012 16:39:35 +0000</pubDate>
        </item>
        <item>
            <title>routing-policy</title>
            <link>https://jal.tw/juniper:junos:routing-policy?rev=1352824152&amp;do=diff</link>
            <description>JUNOS Routing Policy

在 JUNOS 稱之為 Routing Policy or Filter-Based Forwarding，不過一般我們比較常叫他 Policy Based Route。

Example

以下例子為我要將 port 80 的 traffic 從原本的 routing 裡另外轉送到指定的路由器去，如果以 port 80 為例，通常 ISP 是拿來做 TCS(Transparent Cache Switching)，且由於 Cache Server 現在都可以帶原本的 Real Client IP 繼續往外送，回來的時候封包再次經過 Cache Server，就可以達到 Cache 的效果了，且使用者完全不會知道。如果是用於 port 25，則是可以處理類似 Transparent SPAM。…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 13 Nov 2012 16:29:12 +0000</pubDate>
        </item>
        <item>
            <title>tcpdump</title>
            <link>https://jal.tw/juniper:junos:tcpdump?rev=1393414153&amp;do=diff</link>
            <description>JUNOS tcpdump command

sample


tcpdump -w /tmp/ipsec.pcap -nnXSs 1500 -i fe-0/0/2.0 udp and host 123.123.123.123</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 26 Feb 2014 11:29:13 +0000</pubDate>
        </item>
    </channel>
</rss>
