...
1# Using the test network agent
2
3## Create a network agent configuration file
4- Create a file named `nodenetsvc.conf` with the following contents:
5 ```
6 {
7 "ttrpc": "\\\\.\\pipe\\ncproxy-ttrpc",
8 "grpc": "127.0.0.1:6669",
9 "node_net_svc_addr": "127.0.0.1:6668",
10 "timeout": 10,
11 "networking_settings": {
12 "hns_settings": {
13 "switch_name": "name-of-your-switch"
14 }
15 }
16 }
17 ```
18 See definitions [here](https://github.com/microsoft/hcsshim/blob/main/internal/tools/networkagent/defs.go) for further customizing this configuration.
19
20## Run the network agent
21```
22networkagent.exe --config .\nodenetsvc.conf
23```
View as plain text