Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. one@localhost:~$ route -n
  2. Kernel IP routing table
  3. Destination Gateway Genmask Flags Metric Ref Use Iface
  4. 0.0.0.0 192.168.3.1 0.0.0.0 UG 0 0 0 enp37s0
  5. 192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp37s0
  6.  
  7. one@localhost:~$ ifconfig
  8. enp37s0 Link encap:Ethernet HWaddr 70:85:c2:7c:fa:ec
  9. inet addr:192.168.3.57 Bcast:192.168.3.255 Mask:255.255.255.0
  10. inet6 addr: fe80::7285:c2ff:fe7c:faec/64 Scope:Link
  11. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  12. RX packets:12496 errors:0 dropped:0 overruns:0 frame:0
  13. TX packets:9955 errors:0 dropped:0 overruns:0 carrier:0
  14. collisions:0 txqueuelen:1000
  15. RX bytes:7131864 (7.1 MB) TX bytes:1643970 (1.6 MB)
  16.  
  17. lo Link encap:Local Loopback
  18. inet addr:127.0.0.1 Mask:255.0.0.0
  19. inet6 addr: ::1/128 Scope:Host
  20. UP LOOPBACK RUNNING MTU:65536 Metric:1
  21. RX packets:166 errors:0 dropped:0 overruns:0 frame:0
  22. TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
  23. collisions:0 txqueuelen:1000
  24. RX bytes:12412 (12.4 KB) TX bytes:12412 (12.4 KB)
  25.  
  26. brctl addbr br0 tunctl -u
  27. kvmuser -t tap0 ifconfig enp37s0 up
  28. ifconfig tap0 up
  29. brctl addif br0 enp37s0
  30. brctl addif br0 tap0
  31. ifconfig br0 192.168.3.57 netmask 255.255.255.0 up
  32. route add default gw 192.168.3.1
  33.  
  34. root@localhost:/home/one# ip route list
  35. default via 192.168.3.1 dev enp37s0
  36. 192.168.3.0/24 dev enp37s0 proto kernel scope link src 192.168.3.57
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement