> For the complete documentation index, see [llms.txt](https://kelby.gitbook.io/super-zero-protocol-sero/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kelby.gitbook.io/super-zero-protocol-sero/api3001-ke-hu-duan-3001-fu-wu-duan/cmd/bootnode.md).

# bootnode

bootnode runs a bootstrap node for the Ethereum Discovery Protocol.

配置项，种子节点。

```
        listenAddr  = flag.String("addr", ":53719", "listen address")
        genKey      = flag.String("genkey", "", "generate a node key")
        writeAddr   = flag.Bool("writeaddress", false, "write out the node's pubkey hash and quit")
        nodeKeyFile = flag.String("nodekey", "", "private key filename")
        nodeKeyHex  = flag.String("nodekeyhex", "", "private key as hex (for testing)")
        natdesc     = flag.String("nat", "none", "port mapping mechanism (any|none|upnp|pmp|extip:<IP>)")
        netrestrict = flag.String("netrestrict", "", "restrict network communication to the given IP networks (CIDR masks)")
        runv5       = flag.Bool("v5", false, "run a v5 topic discovery bootnode")
        verbosity   = flag.Int("verbosity", int(log.LvlInfo), "log verbosity (0-9)")
        vmodule     = flag.String("vmodule", "", "log verbosity pattern")
```
