Skip to content
Permalink
Browse files

Starting docs on if setup

  • Loading branch information...
benyanke committed Jun 9, 2019
1 parent ea2fd66 commit 7b526a57307fd5d0a68eea28c610e8662dbd8091
Showing with 35 additions and 7 deletions.
  1. +35 −7 _drafts/basic-vyos-setup
@@ -77,19 +77,21 @@ is being created with the following details:
* Password: mypassword


```
set system login user jsmith full-name "John Smith"
set system login user jsmith authentication plaintext-password mypassword
```bash
[edit]
vyos@vyos# set system login user jsmith full-name "John Smith"
vyos@vyos# set system login user jsmith authentication plaintext-password mypassword
commit
```

Additionally, you can delete users (such as the default `vyos` user, which is
recommended) by running the following command. Note that you can not delete
the currently logged in user.

```
delete system login user [username]
commit
```bash
[edit]
vyos@vyos# delete system login user [username]
vyos@vyos# commit
```

## SSH Keys
@@ -110,7 +112,8 @@ Possible protocols for keypath include:
For example, load a key from a public URL like this:

```
loadkey jsmith https://example.com/users/jsmith/ssh/publickey
[edit]
vyos@vyos# loadkey jsmith https://example.com/users/jsmith/ssh/publickey
```

## Interface Setup
@@ -119,6 +122,31 @@ Most router configurations feature a singlular outside/wan
interface, and one or more inside interfaces for various
features.

Begin by enumeration the interfaces on the system.

```bash
[edit]
vyos@vyos# show interfaces
```

Then, we will set up the interfaces we found. We'll set up one outside
interface with DHCP, and one inner interface with an IP, a
configuration suitable for a standard residential or small
business network.

```bash
[edit]
vyos@vyos# set interfaces ethernet eth0 address dhcp
vyos@vyos# set interfaces ethernet eth0 description 'OUTSIDE'
```

```bash
[edit]
vyos@vyos# set interfaces ethernet eth1 address '192.168.0.1/24'
[edit]
vyos@vyos# set interfaces ethernet eth1 description 'INSIDE'
```


## Internal NAT (src nat)

0 comments on commit 7b526a5

Please sign in to comment.
You can’t perform that action at this time.