Site dedicated mainly to internetworking. The goal is to share experiences, teach IP, IPv6. Talk about Linux, IP services, servers, promote IPv6 adoption, routing protocols, security and in some cases just some thoughts. Keywords: linux, cisco, ospf, bgp, eigrp, ip, ipv6, sla, link, routers, routings, telco, telecommunications, security, ipv4
Sunday, October 29, 2023
How to temporarily disable IPv4 on an interface within Linux
Case:
We want to disable IPv4 on an interface
Solution:
sudo ip -4 addr flush dev enp0s1
Explanation:
The above command removes all IPv4 addresses for interface enp0s1. Important, remember that this disabling is only temporary.
No comments:
Post a Comment