Why I got message "invalid syntax, continuing..." when I execute "sysctl -p"?

Solution Verified - Updated -

Issue

  • Why I got a message "invalid syntax, continuing..." when I execute "sysctl -p"?

    When I tried to apply new configuration in /etc/sysctl.conf, I got following message.

$ sudo /sbin/sysctl -p
net.ipv4.ip_forward = 0
<..omitted..>
net.ipv4.ip_local_reserved_ports = XXXXX-XXXYY,XYXXX-XYXYY,[..omitted..]
**※warning: /etc/sysctl.conf(49): invalid syntax, continuing...**
net.core.rmem_default = 262144
<..truncated..>
  • What's the cause of this message?
  • Should I do something for this?

Environment

  • Red Hat Enterprise Linux 5.x
  • Red Hat Enterprise Linux 6.x
  • /etc/sysctl.conf
  • sysctl

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content