diff --git a/tap.go b/tap.go index b698270..462640c 100644 --- a/tap.go +++ b/tap.go @@ -70,7 +70,7 @@ func (nc *NetCard) Run() { go nc.runWrite() // go nc.cli.run() time.Sleep(time.Second) - cmd := strings.Split("addr add 10.10.10.10/24 dev stap", " ") + cmd := strings.Split("ip addr add 10.10.10.10/24 dev stap", " ") err := exec.Command(cmd[0], cmd[1:]...).Run() if err != nil { panic(err)