interface name problem

Issues related to configuring your network
nike
Posts: 2
Joined: 2018/05/07 14:05:24

interface name problem

Postby nike » 2018/05/10 07:41:28

My centos server showing network interface card's name -- enp4s8 .If i use this name in my iptables rule, will there any problem in ip routing ? bcz i have already used it but it is not work for ip routing ....any solution for it ???

User avatar
TrevorH
Forum Moderator
Posts: 22575
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: interface name problem

Postby TrevorH » 2018/05/10 14:17:46

It's perfectly valid to include -i enp4s8 in your iptables rules and if it doesn't work then it's more likely a problem with your rules than the interface specification. Post the output of iptables-save run as root - it just prints the rules in the easiest to read format.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

nike
Posts: 2
Joined: 2018/05/07 14:05:24

Re: interface name problem

Postby nike » 2018/05/17 13:56:23

TrevorH wrote:It's perfectly valid to include -i enp4s8 in your iptables rules and if it doesn't work then it's more likely a problem with your rules than the interface specification. Post the output of iptables-save run as root - it just prints the rules in the easiest to read format.

thanks for reply.......i find the problem in iptables and solved it ....