ܼ

ͥåȥ


󥿡եؤIPɥ쥹

  • Ͽ
    set interfaces ethernet [Interface] address [IP Address]/[bit]

  • delete interfaces ethernet [Interface] address [IP Address]/[bit]

  • show interfaces ethernet [Interface]

    eth0192.168.1.200/24
    $ configure
    [edit]
    # set interfaces ethernet eth0 address 192.168.1.200/24
    [edit]
    # commit
    [edit]
    # save

    eth1192.168.10.254/24
    $ configure
    [edit]
    # set interfaces ethernet eth1 address 192.168.10.254/24
    [edit]
    # commit
    [edit]
    # save

ǥեȥȥ

  • Ͽ
    set system gateway-address [Default Gateway Address]

  • delete system gateway-address [Default Gateway Address]

  • show system gateway-address

    ǥեȥȥ192.168.1.254ˤ
    # set system gateway-address 192.168.1.254
    [edit]
    # commit
    [edit]

DNS

  • Ͽ
    set system name-server [DNS Server Address]

  • delete system name-server [DNS Server Address]

  • show system name-server

    DNSС192.168.1.250ˤ
    # set system name-server 192.168.1.250
    [edit]
    # commit

NAT


  • set service nat rule 1 source address [Network Address]/[bit]
    set service nat rule 1 outbound-interface [Interface]
    set service nat rule 1 type masquerade

    eth1(192.168.10.0/24)̿eth0(192.168.1.254)NAT
    # set nat source rule 1 source address 192.168.10.0/24
    [edit]
    # set nat source rule 1 outbound-interface eth0
    [edit]
    # set nat source rule 1 translation address 192.168.1.254
    [edit]
    # commit
    [edit]

ȴ


ȤΥѥѹ


  • set system login user [USER] authentication plaintext-password [PASSWORD]

    ȡvyattaˤΥѥɤѹhogehogeѹ
    # set system login user vyatta authentication plaintext-password hogehoge
    [edit]
    # commit
    [edit]

ӥ


Web̤ͭ


  • set service https

    ̥ӥͭʵư˼ư¹Ԥ
    $ configure
    [edit]
    # set service https
    [edit]
    # commit
    WebФư
    Stopping web server: lighttpd.
    Starting web server: lighttpd.
    Stopping PAGER server
    Starting PAGER server
    [edit]
    ¸
    # save
    Saving configuration to '/opt/vyatta/etc/config/config.boot'...
    Done
    [edit]

SSHͭ


  • set service ssh

    SSHͭʵư˼ư¹Ԥ
    # set service ssh
    [edit]
    # commit
    [edit]
    # save
    [edit]

DHCPͭ

  • 񼰡ͭ
    set service dhcp-server shared-network-name ETH1_POOL subnet [Network Address]/[bit] start [Start IP Address] stop [End IP Address]

    set service dhcp-server shared-network-name ETH1_POOL subnet [Network Address]/[bit] default-router [Default Gateway Address]

    set service dhcp-server shared-network-name ETH1_POOL subnet [Network Address]/[bit] dns-server [DNS Address]

  • 񼰡̵
    del service dhcp-server shared-network-name ETH1_POOL subnet [Network Address]/[bit] start [Start IP Address] stop [End IP Address]

    DHCPФ
    IPɥ쥹192.168.10.100128
    ǥեȥȥ192.168.10.254
    DNSС192.168.1.250
    # set service dhcp-server shared-network-name ETH1_POOL subnet 192.168.10.0/24 start 192.168.10.100 stop 192.168.10.128
    [edit]
    # set service dhcp-server shared-network-name ETH1_POOL subnet 192.168.10.0/24 default-router 192.168.10.254
    [edit]
    # set service dhcp-server shared-network-name ETH1_POOL subnet 192.168.10.0/24 dns-server 192.168.1.250
    [edit]
    # commit
    [edit]

SNMPͭ


  • set service snmp community [COMMUNITY NAME]

    ߥ˥ƥ̾publicˤꤷӥͭ
    $ configure
    [edit]
    # set service snmp community public
    [edit]
    # commit
    [edit]
    # save

NTPͭ

֤Ǥvyatta.pool.ntp.orgꤵƤ뤿ᡢǤդNTPФѹ롣

  • Ͽ
    set system ntp server [NTP Server]

  • delete system ntp server [NTP Server]

    ntp.nict.jpѹ
    $ configure
    [edit]
    delete system ntp server 0.vyatta.pool.ntp.org 
    [edit]
    delete system ntp server 1.vyatta.pool.ntp.org 
    [edit]
    delete system ntp server 2.vyatta.pool.ntp.org 
    [edit]
    set system ntp server ntp.nict.jp
    [edit]
    # commit
    [edit]
    # save

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2015-05-11 () 16:25:54 (2652d)