summaryrefslogtreecommitdiff
path: root/docs/Model-Notes/Netgear.md
blob: 9bfd094d019172070d6fc176bc6b84dbac4c27e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Netgear Configuration
=====================

There are several models available with CLI management via telnet (port 60000), but they all behave like one of the following:
- older models:
```
Connected to 192.168.3.201.

(GS748Tv4) 
Applying Interface configuration, please wait ...admin
Password:********
(GS748Tv4) >enable
Password:

(GS748Tv4) #terminal length 0

(GS748Tv4) #show running-config
```

- newer models:
```
Connected to 172.0.3.203.

User:admin
Password:********
(GS724Tv4) >enable

(GS724Tv4) #terminal length 0

(GS724Tv4) #show running-config
```

The main differences are:
- the prompt for username is different (looks quite strange for older models)
- enable password
  - the older model prompts for enable password and it expects empty string
  - the newer model does not prompt for enable password at all

Configuration for older/newer models: make sure you have defined variable 'enable':
- `'true'` for newer models
- `''` empty string: for older models

One possible configuration:
- oxidized config
```
source:
  default: csv
  csv:
    file: "/home/oxidized/.config/oxidized/router.db"
    delimiter: !ruby/regexp /:/
    map:
      name: 0
      model: 1
      username: 2
      password: 3
    vars_map:
      enable: 4
      telnet_port: 5
```
- router.db
```
switchOldFW:netgear:admin:adminpw::60000
switchNewFW:netgear:admin:adminpw:true:60000
```

[Reference](https://github.com/ytti/oxidized/pull/1268)