so first find what your eth0 is now called by doing
Code: Select all
ifconfig
enxb827ebdc0d1f: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.15 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::1712:8263:d0d9:c187 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:dc:0d:1f txqueuelen 1000 (Ethernet)
RX packets 400 bytes 41204 (40.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 273 bytes 55706 (54.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:89:58:4a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
and the my ip is 192.168.1.15 which my static IP I set.
so edit dhcpcd.conf with
Code: Select all
sudo nano /etc/dhcpcd.conf
Code: Select all
#static IP configuration
interface enxb827ebdc0d1f
static ip_address=192.168.1.15/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
No comments:
Post a Comment
Note: only a member of this blog may post a comment.